Fix fzf configs
parent
3bf168c517
commit
bf9ca6d383
4
zshrc
4
zshrc
|
|
@ -54,6 +54,8 @@ fi
|
||||||
|
|
||||||
# fzf opts
|
# fzf opts
|
||||||
#export FZF_COMPLETION_OPTS=''
|
#export FZF_COMPLETION_OPTS=''
|
||||||
|
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
|
||||||
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
|
|
||||||
# fd use for fzf
|
# fd use for fzf
|
||||||
_fzf_compgen_path() {
|
_fzf_compgen_path() {
|
||||||
|
|
@ -61,6 +63,6 @@ _fzf_compgen_path() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_fzf_compgen_dir() {
|
_fzf_compgen_dir() {
|
||||||
fd --type d --hidden --follow ^^exclude ".git" . "$1"
|
fd --type d --hidden --follow --exclude ".git" . "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue