1
0
Fork 0

use PWD environment variable instead of calling pwd

pull/5/head
Jonathan Dahan 13 years ago
parent 7fa256bbf0
commit e07b7c88ff

@ -16,8 +16,8 @@
# auto-upgrade will check for updates 6 hours from the last successful upgrade # auto-upgrade will check for updates 6 hours from the last successful upgrade
function upgrade_zsh() { function upgrade_zsh() {
current_path=`pwd`
cd ~/.oh-my-zsh cd ~/.oh-my-zsh
current_path=$PWD
zstyle -t ':omz:plugin:update-omz' auto-commit || local nocommit='--no-commit' zstyle -t ':omz:plugin:update-omz' auto-commit || local nocommit='--no-commit'

Loading…
Cancel
Save