This commit is contained in:
darkclip committed 2024-01-30 04:11:42 +08:00
1 parent 5a03048d0a
commit d59f1c0d52
1 file changed
+9
+9
View File
@@ -53,6 +53,15 @@ _fzf_compgen_path() {
_fzf_compgen_dir() {
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/key-bindings.zsh