From e42a2ac412946c67c2b03bdd36f43b48697c35ab Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 26 Dec 2017 14:12:05 +0100 Subject: [PATCH] Fix dotfiles-init.sh --- dotfiles-init.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles-init.sh b/dotfiles-init.sh index 0608ae0..42f65d3 100644 --- a/dotfiles-init.sh +++ b/dotfiles-init.sh @@ -1,6 +1,12 @@ +#!/usr/bin/env bash + +dotfiles() +{ + git --git-dir=$HOME/.dotfiles --work-tree=$HOME "$@" +} + cd $HOME git init --bare $HOME/.dotfiles -alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' dotfiles config --local status.showUntrackedFiles no dotfiles remote add origin git@bitbucket.org:jannikz/dotfiles.git dotfiles fetch -- 2.43.0