From f0fe603af54424ca282a9409c6521ce379a89f17 Mon Sep 17 00:00:00 2001 From: Khalid Zubair Date: Fri, 10 Feb 2012 19:41:17 -0500 Subject: [PATCH] Add option to preserve symlinks to the zsh script --- autojump.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump.zsh b/autojump.zsh index 3ae80b2..83dde8a 100644 --- a/autojump.zsh +++ b/autojump.zsh @@ -41,7 +41,7 @@ function autojump_preexec() { else _PWD_ARGS="-P" fi - { (autojump -a "$(pwd -P)"&)>/dev/null 2>>|${AUTOJUMP_DATA_DIR}/.autojump_errors ; } 2>/dev/null + { (autojump -a "$(pwd ${_PWD_ARGS})"&)>/dev/null 2>>|${AUTOJUMP_DATA_DIR}/.autojump_errors ; } 2>/dev/null } typeset -ga preexec_functions