Load fzf environment file from XDG dir instead of polluting ~ with it

This commit is contained in:
Danielle McLean 2017-09-11 09:34:46 +10:00
parent b4c985eac8
commit cd76ada62a
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -1,7 +1,7 @@
#! zsh
if [[ -f ~/.fzf.zsh ]]; then
if [[ -f $XDG_DATA_HOME/zsh/fzf.zsh ]]; then
export FZF_CTRL_R_OPTS="--sort"
source ~/.fzf.zsh
source $XDG_DATA_HOME/zsh/fzf.zsh
else
bindkey '^R' history-incremental-search-backward
fi