local fdignore support
This commit is contained in:
parent
fb5f5b41a6
commit
3d674498bb
2 changed files with 17 additions and 38 deletions
|
@ -9,15 +9,15 @@ setopt inc_append_history
|
|||
setopt share_history
|
||||
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
export FZF_DEFAULT_COMMAND='fd -H'
|
||||
export FZF_CTRL_T_COMMAND='fd -H'
|
||||
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
|
||||
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
|
||||
export FZF_DEFAULT_OPTS="-e --multi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=gruvbox {}'"
|
||||
export FZF_CTRL_R_OPTS="-e --layout=reverse --preview=''"
|
||||
_fzf_compgen_path() {
|
||||
fd -H . "$1"
|
||||
fd -H -L --ignore-file ~/.config/fdignore.local . "$1"
|
||||
}
|
||||
_fzf_compgen_dir() {
|
||||
fd -H --type d . "$1"
|
||||
fd -H -L --ignore-file ~/.config/fdignore.local --type d . "$1"
|
||||
}
|
||||
|
||||
source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue