Last active
December 14, 2025 23:31
-
-
Save sg-s/8befe4bc2a139b9b85f2 to your computer and use it in GitHub Desktop.
Autocomplete commands in bash by using arrow keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # supports history search using up and down arrows | |
| # add this to your ~/.bashrc | |
| bind '"\e[A": history-search-backward' | |
| bind '"\e[B": history-search-forward' | |
| bind '"\eOA": history-search-backward' | |
| bind '"\eOB": history-search-forward' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment