From e07b7c88ff6de62ca51dd64ad73ac5bf1ad19470 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Thu, 26 Jan 2012 13:43:27 -0500 Subject: [PATCH] use PWD environment variable instead of calling pwd --- plugins/upgrade/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/upgrade/init.zsh b/plugins/upgrade/init.zsh index a5e60a3e..affb3677 100644 --- a/plugins/upgrade/init.zsh +++ b/plugins/upgrade/init.zsh @@ -16,8 +16,8 @@ # auto-upgrade will check for updates 6 hours from the last successful upgrade function upgrade_zsh() { - current_path=`pwd` cd ~/.oh-my-zsh + current_path=$PWD zstyle -t ':omz:plugin:update-omz' auto-commit || local nocommit='--no-commit'