mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Add option to preserve symlinks to the zsh script
This commit is contained in:
parent
123afc5f37
commit
a5a135d2b5
@ -81,3 +81,4 @@ esac
|
||||
|
||||
alias jumpstat="autojump --stat"
|
||||
function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";else false; fi }
|
||||
|
||||
|
@ -35,6 +35,12 @@ if [[ -d ~/.autojump/ ]]; then
|
||||
fi
|
||||
|
||||
function autojump_preexec() {
|
||||
if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]
|
||||
then
|
||||
_PWD_ARGS=""
|
||||
else
|
||||
_PWD_ARGS="-P"
|
||||
fi
|
||||
{ (autojump -a "$(pwd -P)"&)>/dev/null 2>>|${AUTOJUMP_DATA_DIR}/.autojump_errors ; } 2>/dev/null
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user