From ccc760f556eb25027689e3320a0d0d4fe127ea1e Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Wed, 2 May 2018 14:06:34 -0400 Subject: [PATCH] Install creates & switches to branch of user name This is useful when I maintain different versions of the dotfiles on different machines! --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index cb4302c..1fd0a96 100755 --- a/install.sh +++ b/install.sh @@ -108,6 +108,8 @@ fi # Next, clone a fresh one try_mkdir $HOMEDOTS git clone https://github.com/akarle/dotfiles.git $HOMEDOTS +success_msg "Clone successful! Putting you on your own branch '$(whoami)' so you can make changes!" +(cd $HOMEDOTS && exec git checkout -b $(whoami)) # $HOME level ln's try_ln $DOTSVIM/vimrc $HOME/.vimrc -- libgit2 0.28.4