Dont use pushd popd in pulldotfiles
This commit is contained in:
parent
cb0efa34fe
commit
897664c8fd
|
@ -43,14 +43,14 @@ vfind() {
|
||||||
|
|
||||||
### Others ###
|
### Others ###
|
||||||
pull-dotfiles() {
|
pull-dotfiles() {
|
||||||
pushd > /dev/null 2>&1
|
current_dir=$PWD
|
||||||
echo Pulling dotfiles...
|
echo Pulling dotfiles...
|
||||||
cd ~/.config/dotfiles && git pull
|
cd ~/.config/dotfiles && git pull
|
||||||
echo Pulling scripts...
|
echo Pulling scripts...
|
||||||
cd ~/.scripts && git pull
|
cd ~/.scripts && git pull
|
||||||
echo Pulling oh-my-zsh
|
echo Pulling oh-my-zsh
|
||||||
cd ~/.config/oh-my-zsh && git pull
|
cd ~/.config/oh-my-zsh && git pull
|
||||||
popd > /dev/null 2>&1
|
cd $current_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
# Recover a vim backup
|
# Recover a vim backup
|
||||||
|
|
Loading…
Reference in New Issue