Joined January 2022
·

NerdyDeedsLLC

Could do... could do... or, and I'm just tossing this out there...
"\e[A": history-substring-search-backward "\e[B": history-substring-search-forward
Which accomplishes the same thing, except if you start typing a command first and THEN hit up, it FILTERS your history to only include those commands that start with the same text as you typed. Example:

If my history reads:
echo "hello" echo "world" ls -la lsof
...and I type ec at my prompt, then hit the up arrow, it will only cycle through...
echo "hello" echo "world"
...likewise, if I typed ls at my prompt and hit up arrow...
ls -la lsof

Achievements
1 Karma
0 Total ProTip Views