diff options
author | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
---|---|---|
committer | zghember <zghpku@gmail.com> | 2014-12-15 00:23:34 +0800 |
commit | 6fd0b73e9aba568640005798f737cd73ad0bfdf4 (patch) | |
tree | 22f3654e0c00ffd1cb9c3c05ca5d8bffa190cc1f /plugins/dirhistory | |
parent | 6f70d288cc4625142413227109bf1eeac7e2a180 (diff) | |
parent | 141c2e593401f245a9f9bb0799ada8bf14b677d7 (diff) | |
download | zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.gz zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.tar.bz2 zsh-6fd0b73e9aba568640005798f737cd73ad0bfdf4.zip |
Merge commit '141c2e593401f245a9f9bb0799ada8bf14b677d7'
Diffstat (limited to 'plugins/dirhistory')
-rw-r--r-- | plugins/dirhistory/dirhistory.plugin.zsh | 6 |
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 |