From 34d3e14c2f798af2c63fbd93896ba945ce72e9f9 Mon Sep 17 00:00:00 2001 From: Robert Perce Date: Sat, 21 Mar 2026 23:34:28 -0500 Subject: [PATCH] fzf bash integration and .inputrc --- dot_inputrc | 4 ++++ private_dot_bashrc.tmpl | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 dot_inputrc diff --git a/dot_inputrc b/dot_inputrc new file mode 100644 index 0000000..9b4e542 --- /dev/null +++ b/dot_inputrc @@ -0,0 +1,4 @@ +"\e[A": history-search-backward +"\e[B": history-search-forward +"\e[C": forward-char +"\e[D": backward-char diff --git a/private_dot_bashrc.tmpl b/private_dot_bashrc.tmpl index df22965..2a84ea0 100755 --- a/private_dot_bashrc.tmpl +++ b/private_dot_bashrc.tmpl @@ -26,6 +26,12 @@ bind 'set mark-symlinked-directories on' export EDITOR='/usr/bin/env nvim' export VISUAL='/usr/bin/env nvim' +if command -v fzf >/dev/null; then + eval "$(fzf --bash)" >/dev/null +else + printf "%sfzf not installed; shell integration not available.%s\n" "\[\e[90m\]" "$reset" +fi + function conf() { fname="${XDG_CONFIG_HOME:-$HOME/.config}/$1" test -f "$fname" && source "$fname"