added fzf support

This commit is contained in:
Gabe Venberg 2021-03-15 17:42:36 -05:00
parent 20a42679a8
commit d2a011e151
2 changed files with 10 additions and 3 deletions

View file

@ -63,9 +63,6 @@ set noswapfile "disables creation of swap files
"adds a ruler to the side of the screen "adds a ruler to the side of the screen
set number set number
"makes the ruler show how many lines away a given line is from your cursor
set relativenumber
"displays the coordinates of your cursour in the statusbar "displays the coordinates of your cursour in the statusbar
set ruler set ruler

View file

@ -190,3 +190,13 @@ PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_}
# export grep settings # export grep settings
alias grep="grep $GREP_OPTIONS" alias grep="grep $GREP_OPTIONS"
#fzf stuff
#zsh key bindings (different distros put these in different places.)
source $(find /usr/share -path '*fzf/*key-bindings.zsh')
#zsh completions, if it exists.
testPath = $(find /usr/share -path '*fzf/*completion.zsh')
if test $(echo $testPath | wc -c) -ne 0
then
source $testPath
fi