1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Fix PROMPT_COMMAND issues

This commit is contained in:
JrCs 2012-11-23 09:15:59 +01:00 committed by William Ting
parent d9290e85cd
commit b829fd5a4a
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ import re
import shutil import shutil
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
VERSION = 'release-v21.1.2' VERSION = 'release-v21.1.3'
MAX_KEYWEIGHT = 1000 MAX_KEYWEIGHT = 1000
MAX_STORED_PATHS = 1000 MAX_STORED_PATHS = 1000
COMPLETION_SEPARATOR = '__' COMPLETION_SEPARATOR = '__'

View File

@ -66,7 +66,7 @@ autojump_add_to_database() {
case $PROMPT_COMMAND in case $PROMPT_COMMAND in
*autojump*) ;; *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 esac
function j { function j {