use local to avoid environment pollution

This commit is contained in:
Jonathan Dahan 2012-01-26 13:41:00 -05:00
parent 8603260648
commit 7fa256bbf0

View file

@ -19,7 +19,7 @@ function upgrade_zsh() {
current_path=`pwd`
cd ~/.oh-my-zsh
zstyle -t ':omz:plugin:upgrade' auto-commit || nocommit='--no-commit'
zstyle -t ':omz:plugin:update-omz' auto-commit || local nocommit='--no-commit'
if git pull $nocommit --strategy=recursive -X ours origin master; then
zstyle -t ':omz:plugin:upgrade' color && printf '\033[0;34m%s\033[0m\n'