diff --git a/bash/.bash_functions b/bash/.bash_functions index e99d460..8d2fc42 100644 --- a/bash/.bash_functions +++ b/bash/.bash_functions @@ -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() {