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

Always append to error log.

This commit is contained in:
William Ting 2014-10-04 20:02:41 -07:00
parent 2095b2b129
commit 0d80d91805
3 changed files with 3 additions and 3 deletions

View File

@ -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.0-alpha' VERSION = '22.0.1-beta'
FUZZY_MATCH_THRESHOLD = 0.6 FUZZY_MATCH_THRESHOLD = 0.6
TAB_ENTRIES_COUNT = 9 TAB_ENTRIES_COUNT = 9
TAB_SEPARATOR = '__' TAB_SEPARATOR = '__'

View File

@ -35,7 +35,7 @@ complete -F _autojump j
# change pwd hook # change pwd hook
autojump_add_to_database() { autojump_add_to_database() {
if [[ -f "${AUTOJUMP_ERROR_PATH}" ]]; then if [[ -f "${AUTOJUMP_ERROR_PATH}" ]]; then
(autojump --add "$(pwd)" >/dev/null 2>${AUTOJUMP_ERROR_PATH} &) &>/dev/null (autojump --add "$(pwd)" >/dev/null 2>>${AUTOJUMP_ERROR_PATH} &) &>/dev/null
else else
(autojump --add "$(pwd)" >/dev/null &) &>/dev/null (autojump --add "$(pwd)" >/dev/null &) &>/dev/null
fi fi

View File

@ -30,7 +30,7 @@ fi
# change pwd hook # change pwd hook
autojump_chpwd() { autojump_chpwd() {
if [[ -f "${AUTOJUMP_ERROR_PATH}" ]]; then if [[ -f "${AUTOJUMP_ERROR_PATH}" ]]; then
autojump --add "$(pwd)" >/dev/null 2>${AUTOJUMP_ERROR_PATH} &! autojump --add "$(pwd)" >/dev/null 2>>${AUTOJUMP_ERROR_PATH} &!
else else
autojump --add "$(pwd)" >/dev/null &! autojump --add "$(pwd)" >/dev/null &!
fi fi