From 3126dff7d29d221a0ad078571913766e6085b9f2 Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Wed, 19 Feb 2014 19:00:14 -0800 Subject: [PATCH] Use chpwd_functions to avoid modifying chpwd --- scripts.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts.zsh b/scripts.zsh index e744fde..1132617 100755 --- a/scripts.zsh +++ b/scripts.zsh @@ -1,3 +1,4 @@ -chpwd() { +eval_ondir() { eval "`ondir \"$OLDPWD\" \"$PWD\"`" } +chpwd_functions=( eval_ondir $chpwd_functions )