From c928c78aaab27bc06a3e0c34400eea43cfb6f1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Schaerer?= Date: Wed, 20 Jan 2010 17:47:52 +0100 Subject: [PATCH] really silent this time in case of write error in user directory rationale: if a user's directory isn't writeable, then autojump is probably his last concern :) --- autojump.bash | 2 +- autojump.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autojump.bash b/autojump.bash index a0f5359..b164ca0 100644 --- a/autojump.bash +++ b/autojump.bash @@ -25,7 +25,7 @@ _autojump() return 0 } complete -F _autojump j -AUTOJUMP='(autojump -a "$(pwd -P)"&)>/dev/null 2>>${HOME}/.autojump_errors' +AUTOJUMP='{ (autojump -a "$(pwd -P)"&)>/dev/null 2>>${HOME}/.autojump_errors;} 2>/dev/null' if [[ ! $PROMPT_COMMAND =~ autojump ]]; then export PROMPT_COMMAND="${PROMPT_COMMAND:-:} && $AUTOJUMP" fi diff --git a/autojump.zsh b/autojump.zsh index 32912e4..bbf9df0 100755 --- a/autojump.zsh +++ b/autojump.zsh @@ -15,7 +15,7 @@ #along with autojump. If not, see . function autojump_preexec() { - (autojump -a "$(pwd -P)"&)>/dev/null 2>>|${HOME}/.autojump_errors + { (autojump -a "$(pwd -P)"&)>/dev/null 2>>|${HOME}/.autojump_errors ; } 2>/dev/null } typeset -ga preexec_functions