Skip to content

Instantly share code, notes, and snippets.

@mxa
Last active April 23, 2020 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxa/9b7eb23328977bcb58b7ba81ebcf4a7c to your computer and use it in GitHub Desktop.
Save mxa/9b7eb23328977bcb58b7ba81ebcf4a7c to your computer and use it in GitHub Desktop.
bash behavior modifications
# make arrow keys complete from history:
add to ~.inputrc
"\C-[OA": history-search-backward
"\C-[[A": history-search-backward
"\C-[OB": history-search-forward
"\C-[[B": history-search-forward
Source:
https://stackoverflow.com/questions/1030182/how-do-i-change-bash-history-completion-to-complete-whats-already-on-the-line#21271407
# make an terminal command alias
~/.bash_aliases
alias o='xdg-open'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment