mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
parent
4f90d5b755
commit
531a7321d3
@ -59,7 +59,7 @@ from autojump_utils import sanitize
|
|||||||
from autojump_utils import take
|
from autojump_utils import take
|
||||||
from autojump_utils import unico
|
from autojump_utils import unico
|
||||||
|
|
||||||
VERSION = '22.0.3-beta'
|
VERSION = '22.1.0-beta'
|
||||||
FUZZY_MATCH_THRESHOLD = 0.6
|
FUZZY_MATCH_THRESHOLD = 0.6
|
||||||
TAB_ENTRIES_COUNT = 9
|
TAB_ENTRIES_COUNT = 9
|
||||||
TAB_SEPARATOR = '__'
|
TAB_SEPARATOR = '__'
|
||||||
|
@ -8,10 +8,20 @@ end
|
|||||||
complete -x -c j -a '(autojump --complete (commandline -t))'
|
complete -x -c j -a '(autojump --complete (commandline -t))'
|
||||||
|
|
||||||
|
|
||||||
|
# set error file location
|
||||||
|
if (uname) == "Darwin"
|
||||||
|
set -x AUTOJUMP_ERROR_PATH ~/Library/autojump/errors.log
|
||||||
|
else if test -d $XDG_DATA_HOME
|
||||||
|
set -x AUTOJUMP_ERROR_PATH $XDG_DATA_HOME/autojump/errors.log
|
||||||
|
else
|
||||||
|
set -x AUTOJUMP_ERROR_PATH ~/.local/share/autojump/errors.log
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
# change pwd hook
|
# change pwd hook
|
||||||
function __aj_add --on-variable PWD
|
function __aj_add --on-variable PWD
|
||||||
status --is-command-substitution; and return
|
status --is-command-substitution; and return
|
||||||
autojump -a (pwd) >/dev/null &
|
autojump --add (pwd) >/dev/null 2>>$AUTOJUMP_ERROR_PATH &
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user