Fix zsh without fzf

This commit is contained in:
rydesun 2021-08-25 20:40:21 +08:00
parent 0fe92542a0
commit 09c579e22a

View file

@ -173,11 +173,13 @@ scroll-and-clear-screen() {
bindkey '^l' scroll-and-clear-screen
# fzf
[[ -f ${_SRC_FZF_KEYBIND} ]] && source ${_SRC_FZF_KEYBIND}
# 替换默认的fzf widget
bindkey '^T' fzf-completion
# 恢复TAB键的行为
bindkey '^I' $fzf_default_completion
if [[ -f ${_SRC_FZF_KEYBIND} ]]; then
source ${_SRC_FZF_KEYBIND}
# 替换默认的fzf widget
bindkey '^T' fzf-completion
# 恢复TAB键的行为
bindkey '^I' $fzf_default_completion
fi
# 让 / 作为分隔符
# 默认 WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'