Skip to content

Commit

Permalink
Use chpwd_functions to avoid modifying chpwd
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Feb 20, 2014
1 parent ef71edc commit 3126dff
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 3126dff

Please sign in to comment.