update
This commit is contained in:
1 parent
5a03048d0a
commit
d59f1c0d52
1 file changed
+9
@@ -53,6 +53,15 @@ _fzf_compgen_path() {
|
|||||||
_fzf_compgen_dir() {
|
_fzf_compgen_dir() {
|
||||||
fdfind --type d --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1"
|
fdfind --type d --hidden --exclude .git --exclude __pycache__ --exclude node_modules --exclude .cache . "$1"
|
||||||
}
|
}
|
||||||
|
_fzf_comprun() {
|
||||||
|
local command=$1
|
||||||
|
shift
|
||||||
|
|
||||||
|
case "$command" in
|
||||||
|
ssh) fzf --preview 'ssh -tt -G {} | head -n 4' "$@" ;;
|
||||||
|
*) fzf "$@" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
source /usr/share/doc/fzf/examples/completion.zsh
|
source /usr/share/doc/fzf/examples/completion.zsh
|
||||||
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user