Use fzf because it's pretty swag

de6008ddfe03fdcb9dfcf7c8a2ba48ff8fbc5c45
Alexis Sellier committed ago 1 parent 1f623db2
.zshrc +6 -1
15 15
16 16
# Set input mode to vi
17 17
set -o vi
18 18
19 19
# Bind <C-r> to history search
20 -
bindkey "^r" history-incremental-search-backward
20 +
if [ -f ~/.fzf.zsh ]; then
21 +
  bindkey '^R' fzf-history-widget
22 +
  bindkey '^P' fzf-file-widget
23 +
else
24 +
  bindkey '^R' history-incremental-search-backward
25 +
fi
21 26
22 27
#
23 28
# Aliases
24 29
#
25 30
alias g='git'