adding fzf support to bash

This commit is contained in:
Andrew Davidson 2023-01-06 17:58:30 -08:00
parent ffa2b0b506
commit e317f05dca

View file

@ -232,6 +232,22 @@ function mt {
# |_|_| |_| |_| .__/ \___/|_| \__|___/
# |_|
# import fzf if possible
# Debian
if [ -d /usr/share/doc/fzf/examples ]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
source /usr/share/doc/fzf/examples/completion.bash
fi
# MacOS
if [ -d /opt/homebrew/opt/fzf/shell ]; then
source /opt/homebrew/opt/fzf/shell/key-bindings.bash
source /opt/homebrew/opt/fzf/shell/completion.bash
fi
# Import local extensions if needed.
if [ -f $HOME/.bashrc_local ]; then
source $HOME/.bashrc_local