fzf bash integration and .inputrc

This commit is contained in:
Robert Perce 2026-03-21 23:34:28 -05:00
parent e06382c637
commit 34d3e14c2f
2 changed files with 10 additions and 0 deletions

4
dot_inputrc Normal file
View file

@ -0,0 +1,4 @@
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char

View file

@ -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"