mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 22:27:41 +00:00
Extend the list of commands for fzf-completion
This commit is contained in:
parent
64541cb5f8
commit
724724bd8c
@ -78,16 +78,17 @@ for cmd in "cd pushd rmdir"; do
|
|||||||
complete -F _fzf_dir_completion -o default $cmd
|
complete -F _fzf_dir_completion -o default $cmd
|
||||||
done
|
done
|
||||||
|
|
||||||
FZF_COMPLETION_COMMANDS=${FZF_COMPLETION_COMMANDS:-
|
_FZF_COMPLETION_COMMANDS=${FZF_COMPLETION_COMMANDS:-
|
||||||
awk basename bunzip2 bzip2 curl diff diff3 dirname du emacs ex file find ftp
|
awk basename bunzip2 bzip2 cat chmod chown curl cp diff diff3 dirname du
|
||||||
g++ gcc git grep gunzip gvim gzip head hg jar java javac jps ld less ls more
|
emacs ex file find ftp g++ gcc git grep gunzip gvim gzip head hg jar java
|
||||||
mvim open patch perl python rsync ruby scp sed sftp sort svn tail tar tee
|
javac jps ld less ln ls more mv mvim open patch perl python rm rsync ruby scp
|
||||||
uniq unzip vi view vim wc zip
|
sed sftp sort source svn tail tar tee uniq unzip vi view vim wc zip
|
||||||
}
|
}
|
||||||
|
|
||||||
for cmd in $FZF_COMPLETION_COMMANDS; do
|
for cmd in $_FZF_COMPLETION_COMMANDS; do
|
||||||
complete -F _fzf_all_completion -o default $cmd
|
complete -F _fzf_all_completion -o default $cmd
|
||||||
done
|
done
|
||||||
|
unset _FZF_COMPLETION_COMMANDS
|
||||||
|
|
||||||
bind '"\e\e": complete'
|
bind '"\e\e": complete'
|
||||||
bind '"\er": redraw-current-line'
|
bind '"\er": redraw-current-line'
|
||||||
|
Loading…
Reference in New Issue
Block a user