adding fzf support to bash
This commit is contained in:
parent
ffa2b0b506
commit
e317f05dca
1 changed files with 16 additions and 0 deletions
16
bash/.bashrc
16
bash/.bashrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue