diff options
Diffstat (limited to '.install-dotfiles.sh')
-rw-r--r-- | .install-dotfiles.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.install-dotfiles.sh b/.install-dotfiles.sh index e69bfc56..dbdab1fe 100644 --- a/.install-dotfiles.sh +++ b/.install-dotfiles.sh @@ -1,3 +1,9 @@ +# +# | '__/ _ \ / _` / __| Roger González +# | | | (_) | (_| \__ \ https://rogs.me +# |_| \___/ \__, |___/ https://git.rogs.me +# |___/ +# git clone --bare https://git.rogs.me/me/dotfiles.git $HOME/.cfg function config { /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ @@ -5,10 +11,10 @@ function config { mkdir -p .config-backup config checkout if [ $? = 0 ]; then - echo "Checked out config."; - else - echo "Backing up pre-existing dot files."; - config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} +echo "Checked out config."; +else + echo "Backing up pre-existing dot files."; + config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} fi; config checkout config config status.showUntrackedFiles no |