Switch back after update

This commit is contained in:
2020-07-17 08:12:46 +01:00
parent 3a2a0985bb
commit c004e7204d

View File

@@ -1,6 +1,7 @@
# Git pulls latest dotfiles
function update-dotfiles() {
prevdir=$PWD
if [ -d "${HOME}/.dotfiles" ]; then
cd $HOME/.dotfiles
git pull --rebase --autostash
@@ -9,6 +10,7 @@ function update-dotfiles() {
cd $HOME/.dotfiles-private
git pull --rebase --autostash
fi
cd $prevdir
}
function add-sshkey() {