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:
parent
d9290e85cd
commit
b829fd5a4a
@ -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 = '__'
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user