Dont use pushd popd in pulldotfiles

This commit is contained in:
Thomas Forgione 2018-09-25 18:10:21 +02:00
parent cb0efa34fe
commit 897664c8fd
1 changed files with 2 additions and 2 deletions

View File

@ -43,14 +43,14 @@ vfind() {
### Others ###
pull-dotfiles() {
pushd > /dev/null 2>&1
current_dir=$PWD
echo Pulling dotfiles...
cd ~/.config/dotfiles && git pull
echo Pulling scripts...
cd ~/.scripts && git pull
echo Pulling oh-my-zsh
cd ~/.config/oh-my-zsh && git pull
popd > /dev/null 2>&1
cd $current_dir
}
# Recover a vim backup