diff options
author | Robby Russell <robby@planetargon.com> | 2014-11-06 10:42:38 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-11-06 10:42:38 -0800 |
commit | 7f75bb90e326fdb39de37c14a0813e52801b1bba (patch) | |
tree | 14bc3e5448b5d2afc822bbe890a12864026dc6d4 /plugins/pow | |
parent | 7034b01cd10cebb2658f54aa07ac0ce5ee64e0e0 (diff) | |
parent | 95d795e8cad7d1a754dfad520309d7a41b69275f (diff) | |
download | zsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.tar.gz zsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.tar.bz2 zsh-7f75bb90e326fdb39de37c14a0813e52801b1bba.zip |
Merge pull request #3223 from mcornella/use-special-vars
Use special variables where we can
Diffstat (limited to 'plugins/pow')
-rw-r--r-- | plugins/pow/pow.plugin.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh index d85c88777..ded3336a7 100644 --- a/plugins/pow/pow.plugin.zsh +++ b/plugins/pow/pow.plugin.zsh @@ -21,13 +21,13 @@ rack_root(){ setopt chaselinks - local orgdir="$(pwd)" - local basedir="$(pwd)" + local orgdir="$PWD" + local basedir="$PWD" while [[ $basedir != '/' ]]; do test -e "$basedir/config.ru" && break builtin cd ".." 2>/dev/null - basedir="$(pwd)" + basedir="$PWD" done builtin cd "$orgdir" 2>/dev/null @@ -56,7 +56,7 @@ kapow(){ compctl -W ~/.pow -/ kapow powit(){ - local basedir="$(pwd)" + local basedir="$PWD" local vhost=$1 [ ! -n "$vhost" ] && vhost=$(rack_root_detect) if [ ! -h ~/.pow/$vhost ] |