use PWD environment variable instead of calling pwd
This commit is contained in:
parent
7fa256bbf0
commit
e07b7c88ff
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue