[zsh] fzf completion using last token with ^T

This commit is contained in:
odrling 2023-12-13 00:46:01 +01:00
parent 456aed925b
commit 7ca994de11
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

3
.zshrc
View file

@ -11,6 +11,9 @@ if command -v fzf >/dev/null; then
source ~/.bash/fzf/shell/completion.zsh
source ~/.bash/fzf/shell/key-bindings.zsh
source ~/.bash/fzf-tab-completion/zsh/fzf-zsh-completion.sh
export FZF_COMPLETION_TRIGGER=''
bindkey '^T' fzf-completion
bindkey '^I' $fzf_default_completion
fi
command -v direnv 2>&1 > /dev/null && source <(direnv hook zsh)