From 897664c8fd25fd9745195c39c259c9c7825354c9 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 25 Sep 2018 18:10:21 +0200 Subject: [PATCH] Dont use pushd popd in pulldotfiles --- zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 2dde17a..4769978 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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