Skip to content

Commit

Permalink
Merge pull request #3 from xuhdev/patch-1
Browse files Browse the repository at this point in the history
Use chpwd_functions to avoid modifying chpwd
  • Loading branch information
alecthomas committed Feb 20, 2014
2 parents ef71edc + 3126dff commit 55279f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
chpwd() {
eval_ondir() {
eval "`ondir \"$OLDPWD\" \"$PWD\"`"
}
chpwd_functions=( eval_ondir $chpwd_functions )

0 comments on commit 55279f0

Please sign in to comment.