local fdignore support
This commit is contained in:
parent
fb5f5b41a6
commit
3d674498bb
@ -1,37 +1,16 @@
|
|||||||
# self
|
|
||||||
.fdignore
|
|
||||||
# swap files
|
|
||||||
*~
|
|
||||||
*.swp
|
*.swp
|
||||||
# config/temp files
|
*~
|
||||||
.vim
|
.*history
|
||||||
.fzf*
|
|
||||||
.cups
|
|
||||||
.cache
|
.cache
|
||||||
.local
|
.config/vim
|
||||||
.zcomp*
|
.config/zsh/caches
|
||||||
.config
|
.config/zsh/plugins
|
||||||
.python*
|
.config/zsh/themes
|
||||||
.lesshst
|
.fdignore
|
||||||
.history
|
.fzf*
|
||||||
.hushlogin
|
|
||||||
.zcompdump
|
|
||||||
# git
|
|
||||||
.git*
|
.git*
|
||||||
# macOS specified
|
.lesshst
|
||||||
.Trash
|
.local
|
||||||
.DS_Store*
|
.python*
|
||||||
.localized
|
.vim
|
||||||
.chpwd-recent-dirs
|
.zcomp*
|
||||||
.CFUserTextEncoding
|
|
||||||
Music
|
|
||||||
Movies
|
|
||||||
iCloud
|
|
||||||
Library
|
|
||||||
Desktop
|
|
||||||
Pictures
|
|
||||||
Downloads
|
|
||||||
Documents
|
|
||||||
# misc
|
|
||||||
Bin
|
|
||||||
Logs
|
|
||||||
|
@ -9,15 +9,15 @@ setopt inc_append_history
|
|||||||
setopt share_history
|
setopt share_history
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
export FZF_DEFAULT_COMMAND='fd -H'
|
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.config/fdignore.local'
|
||||||
export FZF_CTRL_T_COMMAND='fd -H'
|
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_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=''"
|
export FZF_CTRL_R_OPTS="-e --layout=reverse --preview=''"
|
||||||
_fzf_compgen_path() {
|
_fzf_compgen_path() {
|
||||||
fd -H . "$1"
|
fd -H -L --ignore-file ~/.config/fdignore.local . "$1"
|
||||||
}
|
}
|
||||||
_fzf_compgen_dir() {
|
_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
|
source ~/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user