m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Suppress error message from bash-completion

This commit is contained in:
Junegunn Choi
2014-07-18 00:25:01 +09:00
parent 13cd4ed546
commit 69b2a0a733

View File

@@ -89,7 +89,7 @@ _fzf_path_completion() {
shift shift
shift shift
orig=$(eval "echo \$_fzf_orig_completion_$cmd") orig=$(eval "echo \$_fzf_orig_completion_$cmd")
[ -n "$orig" ] && type "$orig" > /dev/null && $orig "$@" [ -n "$orig" ] && type "$orig" > /dev/null 2>&1 && $orig "$@"
fi fi
} }
@@ -206,7 +206,7 @@ if [ "$_fzf_completion_loaded" != '0.8.6-1' ]; then
export _fzf_completion_loaded=0.8.6-1 export _fzf_completion_loaded=0.8.6-1
fi fi
if type _completion_loader > /dev/null; then if type _completion_loader > /dev/null 2>&1; then
_fzf_completion_loader=1 _fzf_completion_loader=1
fi fi