diff --git a/conf/fdignore b/conf/fdignore index 35eaee5..e1bfc33 100644 --- a/conf/fdignore +++ b/conf/fdignore @@ -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* diff --git a/zsh/zshrc b/zsh/zshrc index ee382e2..c26af73 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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