m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00
This commit is contained in:
Junegunn Choi
2015-05-21 00:38:40 +09:00
parent 1592bedbe8
commit 34946b72a5
6 changed files with 19 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ _fzf_opts_completion() {
+s --no-sort
--tac
--tiebreak
--bind
-m --multi
--no-mouse
--color
@@ -222,11 +223,11 @@ a_cmds="
x_cmds="kill ssh telnet unset unalias export"
# Preserve existing completion
if [ "$_fzf_completion_loaded" != '0.8.6-1' ]; then
if [ "$_fzf_completion_loaded" != '0.9.12' ]; then
# Really wish I could use associative array but OSX comes with bash 3.2 :(
eval $(complete | \grep '\-F' | \grep -v _fzf_ |
\grep -E " ($(echo $d_cmds $f_cmds $a_cmds $x_cmds | sed 's/ /|/g' | sed 's/+/\\+/g'))$" | _fzf_orig_completion_filter)
export _fzf_completion_loaded=0.8.6-1
export _fzf_completion_loaded=0.9.12
fi
if type _completion_loader > /dev/null 2>&1; then