local fdignore support
This commit is contained in:
parent
fb5f5b41a6
commit
3d674498bb
@ -1,37 +1,16 @@
|
||||
# self
|
||||
.fdignore
|
||||
# swap files
|
||||
*~
|
||||
*.swp
|
||||
# config/temp files
|
||||
.vim
|
||||
.fzf*
|
||||
.cups
|
||||
*~
|
||||
.*history
|
||||
.cache
|
||||
.local
|
||||
.zcomp*
|
||||
.config
|
||||
.python*
|
||||
.lesshst
|
||||
.history
|
||||
.hushlogin
|
||||
.zcompdump
|
||||
# git
|
||||
.config/vim
|
||||
.config/zsh/caches
|
||||
.config/zsh/plugins
|
||||
.config/zsh/themes
|
||||
.fdignore
|
||||
.fzf*
|
||||
.git*
|
||||
# macOS specified
|
||||
.Trash
|
||||
.DS_Store*
|
||||
.localized
|
||||
.chpwd-recent-dirs
|
||||
.CFUserTextEncoding
|
||||
Music
|
||||
Movies
|
||||
iCloud
|
||||
Library
|
||||
Desktop
|
||||
Pictures
|
||||
Downloads
|
||||
Documents
|
||||
# misc
|
||||
Bin
|
||||
Logs
|
||||
.lesshst
|
||||
.local
|
||||
.python*
|
||||
.vim
|
||||
.zcomp*
|
||||
|
@ -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…
Reference in New Issue
Block a user