From cee11f1aa6eae0262d5ba4b7d54247978bfb56a3 Mon Sep 17 00:00:00 2001 From: rydesun Date: Wed, 18 Nov 2020 18:12:46 +0800 Subject: [PATCH] Update zshrc: set word delimiter and fzf default command --- .config/zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 93e72ae..ce3a630 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -70,7 +70,7 @@ if [[ -f /usr/share/fzf/completion.zsh ]]; then source /usr/share/fzf/completion.zsh fi export FZF_COMPLETION_TRIGGER='~~' -export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden' +export FZF_DEFAULT_COMMAND='fd -uu -E .git -E .node_modules' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" # >>>----------------------------------- @@ -81,6 +81,8 @@ bindkey -e if [[ -f /usr/share/fzf/key-bindings.zsh ]]; then source /usr/share/fzf/key-bindings.zsh fi +# 默认 WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' +export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' # >>>----------------------------------- # 提示符 <<<----------------------------