[FIX] Fuzzy finder for shell history

For some reason the fuzzy finder script for Bash and Zsh history using
fzf needs to be sourced later than it was in order to work correctly.
This commit is contained in:
Bruno BELANYI 2019-10-23 13:53:09 +02:00
parent 518959fb9f
commit a9bddde57a
2 changed files with 6 additions and 4 deletions

View file

@ -11,8 +11,6 @@ if [[ $TERM == xterm-termite ]]; then
__vte_prompt_command
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Make colorcoding available for everyone
Black='\e[0;30m' # Black
@ -62,3 +60,6 @@ source ~/.profile
# Import my prompt
source ~/.bash_prompt
# Use fzf for backwards search
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View file

@ -4,8 +4,6 @@ if [[ $TERM == xterm-termite ]]; then
__vte_osc7
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# History configuration
HISTFILE=~/.zhistory
HISTSIZE=10000
@ -105,3 +103,6 @@ source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.
# import my prompt
source ~/.zsh_prompt
# Use fzf for backwards search
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh