Last active
April 3, 2016 18:35
-
-
Save lstor/1f858accec946ca097defd4307dbf0a0 to your computer and use it in GitHub Desktop.
Revisions
-
lstor revised this gist
Apr 3, 2016 . 1 changed file with 19 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,21 @@ echo "Installing dotfiles..." # Clone repo git clone --bare --separate-git-dir=$HOME/.dotfiles https://github.com/lstor/dotfiles $HOME/dotfiles-unused # Move submodules, if any if [ -x ~/dotfiles-tmp/.gitmodules ]; do cp -v ~/dotfiles-tmp/.gitmodules ~ fi # Configure alias cfg='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' cfg config --local status.showUntrackedFiles no # Remove tmp dir rm -vr ~/dotfiles-tmp/ # Get files from bare repo cfg checkout echo "Installation done!" -
lstor created this gist
Apr 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ echo "Installing dotfiles..." git clone --separate-git-dir=$HOME/.dotfiles https://github.com/lstor/dotfiles $HOME/dotfiles-tmp cp ~/dotfiles-tmp/.gitmodules ~ rm -r ~/dotfiles-tmp/ echo "Installation done!"