Skip to content

Commit

Permalink
add partial history search
Browse files Browse the repository at this point in the history
  • Loading branch information
oasido committed Mar 26, 2024
1 parent 2d269f6 commit d497555
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ shopt -s histappend
PROMPT_COMMAND='history -a'

# ~~~~~~~~~~~~~~~ Other ~~~~~~~~~~~~~~~~~~~~~~~~
# search through history with up/down arrows
bind '"\e[A": history-search-backward' 2>/dev/null
bind '"\e[B": history-search-forward' 2>/dev/null

##
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
Expand Down

0 comments on commit d497555

Please sign in to comment.