fzf bash integration and .inputrc
This commit is contained in:
parent
e06382c637
commit
34d3e14c2f
2 changed files with 10 additions and 0 deletions
4
dot_inputrc
Normal file
4
dot_inputrc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
"\e[C": forward-char
|
||||
"\e[D": backward-char
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue