Fix fzf config

6688715c1dcd348c7027554ceece5c04c0dd47ff
Alexis Sellier committed ago 1 parent 3f37d461
.zshrc +7 -2
1 1
##
2 2
# cloudhead - .zshrc
3 3
#
4 4
export FZF_DEFAULT_COMMAND='ag --hidden -U -g ""'
5 -
export FZF_DEFAULT_OPTS='--prompt="/ " --color=16 --exact'
5 +
export FZF_DEFAULT_OPTS='--prompt="/ " --color=16,fg+:-1,hl+:-1,hl:254 --exact'
6 6
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
7 7
8 8
[ -f ~/.profile ] && source ~/.profile
9 9
[ -f ~/.awsrc ]   && source ~/.awsrc
10 10
11 +
# Should contain keybindings and completions for fzf
12 +
for f in ~/.fzf/*; do
13 +
  source $f
14 +
done
15 +
11 16
# `ls` colors
12 17
if [ -f ~/.dircolors ]; then
13 18
  eval $(dircolors -b ~/.dircolors)
14 19
fi
15 20
22 27
23 28
# Set input mode to vi
24 29
set -o vi
25 30
26 31
# Bind <C-r> to history search
27 -
if [ command -v fzf >/dev/null 2>&1 ]; then
32 +
if command -v fzf >/dev/null 2>&1; then
28 33
  bindkey '^R' fzf-history-widget
29 34
  bindkey '^P' fzf-file-widget
30 35
else
31 36
  bindkey '^R' history-incremental-search-backward
32 37
fi