Skip to content

Commit

Permalink
install fd, use for fzf
Browse files Browse the repository at this point in the history
because ag picks up too many dist + node_module files:
ggreer/the_silver_searcher#285

(and possibly no longer maintained?)
  • Loading branch information
alexkuang committed Nov 10, 2019
1 parent f9f3db5 commit 3b181f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Brewfile
Expand Up @@ -4,6 +4,7 @@ tap 'homebrew/bundle'

brew 'ag'
brew 'coreutils'
brew 'fd'
brew 'fzf'
brew 'git'
brew 'highlight'
Expand Down
2 changes: 1 addition & 1 deletion zsh/zshrc.symlink
Expand Up @@ -54,7 +54,7 @@ fi

# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_DEFAULT_COMMAND='fd --type f'

export FZF_DEFAULT_OPTS="--exact --extended --preview '[[ \$(file --mime {}) =~ binary ]] && echo {} is a binary file || highlight -O xterm256 -l {} || cat {} 2> /dev/null | head -500' --bind '?:toggle-preview'"
export FZF_CTRL_R_OPTS="--exact --extended --preview 'echo {}' --bind '?:toggle-preview' --preview-window 'right:wrap'"
Expand Down

0 comments on commit 3b181f4

Please sign in to comment.