Skip to content

Commit

Permalink
ZSH Add fzf conf
Browse files Browse the repository at this point in the history
  • Loading branch information
clairvy committed Apr 5, 2020
1 parent c13b143 commit 1317a63
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .zshrc
Expand Up @@ -736,4 +736,16 @@ if [[ -d $HOME/.cargo ]]; then
path=($path $HOME/.cargo/bin)
fi

# Settings for fzf
if whence -p fzf 2>&1 > /dev/null; then
path=($path $HOME/.fzf/bin)
if whence -p rg 2>&1 > /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git"'
fi
export FZF_DEFAULT_OPTS='--height 30% --border'
if [[ -f $HOME/.fzf.zsh ]]; then
source ~/.fzf.zsh
fi
fi

# vim: sw=2

0 comments on commit 1317a63

Please sign in to comment.