diff --git a/bin/autojump b/bin/autojump index b4a9b02..6861030 100755 --- a/bin/autojump +++ b/bin/autojump @@ -34,7 +34,7 @@ import re import shutil from tempfile import NamedTemporaryFile -VERSION = 'release-v21.1.2' +VERSION = 'release-v21.1.3' MAX_KEYWEIGHT = 1000 MAX_STORED_PATHS = 1000 COMPLETION_SEPARATOR = '__' diff --git a/bin/autojump.bash b/bin/autojump.bash index 1603018..c6fad14 100644 --- a/bin/autojump.bash +++ b/bin/autojump.bash @@ -66,7 +66,7 @@ autojump_add_to_database() { case $PROMPT_COMMAND in *autojump*) ;; - *) export PROMPT_COMMAND="autojump_add_to_database; ${PROMPT_COMMAND:-:}";; + *) export PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database";; esac function j {