Bash Profile Adjustments – Scrolling History

Your bash profile lets you make edits that let you design how the cli works for you. One of my favorite edits is to let me set the scrolling back through my history be based on what I start typing. So, for example, I can type

[bash]cd[/bash]

and then use the up-arrow key and it scrolls through my cli history based only on those that start with cd

To add this to your .profile file (or put it in your .bash_rc file):

[bash]bind ‘"\e[A"’:history-search-backward
bind ‘"\e[B"’:history-search-forward[/bash]

Related: Customizing the Command Prompt for Terminal in UbuntuTesting if Ubuntu server email is working with cliLinux/Ubuntu File and Directory Permissions

One thought on “Bash Profile Adjustments – Scrolling History

  1. Pingback: Updates Needed When Upgrading from Apache 2.2 to 2.4 | Coding and Server Syntax Examples

Comments are closed.