Skip to content

Instantly share code, notes, and snippets.

@ruch0401
Created April 4, 2024 15:11
Show Gist options
  • Save ruch0401/eab56e3087131d5365506849e9891cc9 to your computer and use it in GitHub Desktop.
Save ruch0401/eab56e3087131d5365506849e9891cc9 to your computer and use it in GitHub Desktop.

Configure Up Arrow to search History

Using ~/.bashrc Edit ~/.bashrc with this command:

gedit ~/.bashrc Add the following lines:

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

Save then close the file. Execute this command in a terminal:

source ~/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment