use PWD environment variable instead of calling pwd

This commit is contained in:
Jonathan Dahan 2012-01-26 13:43:27 -05:00
parent 7fa256bbf0
commit e07b7c88ff

View file

@ -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'