diff --git a/plugins/omf/omf.git.fish b/plugins/omf/omf.git.fish index d27db37..26abb71 100644 --- a/plugins/omf/omf.git.fish +++ b/plugins/omf/omf.git.fish @@ -7,7 +7,9 @@ function omf.git git clone --quiet $repo_url $path ^ /tmp/oh-my-fish.clone.log case '--update' set -l path $argv[2] - return (cd $path; and git pull --quiet --rebase > /dev/null; echo $status) + return (pushd $path; and git pull --quiet --rebase > /dev/null + echo $status + popd > /dev/null) case '*' omf.log red 'Unknown option' end