From 3cd42a0eda5b695c89e8c68d574b608d0995f51d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 10 May 2022 11:57:17 +0200 Subject: .bashrc: add fzf integration --- .bashrc | 2 ++ .fzf.bash | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .fzf.bash diff --git a/.bashrc b/.bashrc index cb5cf76..5c1a1f3 100644 --- a/.bashrc +++ b/.bashrc @@ -111,3 +111,5 @@ if [ -f $CARGO_ENV ]; then . $CARGO_ENV fi source "$HOME/.cargo/env" + +[ -f ~/.fzf.bash ] && source ~/.fzf.bash diff --git a/.fzf.bash b/.fzf.bash new file mode 100644 index 0000000..703aeb5 --- /dev/null +++ b/.fzf.bash @@ -0,0 +1,13 @@ +# Setup fzf +# --------- +if [[ ! "$PATH" == */home/tklauser/.fzf/bin* ]]; then + export PATH="${PATH:+${PATH}:}/home/tklauser/.fzf/bin" +fi + +# Auto-completion +# --------------- +[[ $- == *i* ]] && source "/home/tklauser/.fzf/shell/completion.bash" 2> /dev/null + +# Key bindings +# ------------ +source "/home/tklauser/.fzf/shell/key-bindings.bash" -- cgit v1.2.3-54-g00ecf