summaryrefslogtreecommitdiff
path: root/plugins/dirhistory
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-11-06 10:42:38 -0800
committerRobby Russell <robby@planetargon.com>2014-11-06 10:42:38 -0800
commit7f75bb90e326fdb39de37c14a0813e52801b1bba (patch)
tree14bc3e5448b5d2afc822bbe890a12864026dc6d4 /plugins/dirhistory
parent7034b01cd10cebb2658f54aa07ac0ce5ee64e0e0 (diff)
parent95d795e8cad7d1a754dfad520309d7a41b69275f (diff)
downloadzsh-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/dirhistory')
-rw-r--r--plugins/dirhistory/dirhistory.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
index 504d7ec14..d101cfcae 100644
--- a/plugins/dirhistory/dirhistory.plugin.zsh
+++ b/plugins/dirhistory/dirhistory.plugin.zsh
@@ -3,7 +3,7 @@
# that the user has changed to in the past, and ALT-RIGHT undoes ALT-LEFT.
#
-dirhistory_past=(`pwd`)
+dirhistory_past=($PWD)
dirhistory_future=()
export dirhistory_past
export dirhistory_future
@@ -50,7 +50,7 @@ function push_future() {
# Called by zsh when directory changes
function chpwd() {
- push_past `pwd`
+ push_past $PWD
# If DIRHISTORY_CD is not set...
if [[ -z "${DIRHISTORY_CD+x}" ]]; then
# ... clear future.
@@ -73,7 +73,7 @@ function dirhistory_back() {
pop_past cw
if [[ "" == "$cw" ]]; then
# Someone overwrote our variable. Recover it.
- dirhistory_past=(`pwd`)
+ dirhistory_past=($PWD)
return
fi