Skip to content

Instantly share code, notes, and snippets.

@jan-warchol jan-warchol/.bashrc
Created Mar 21, 2018

What would you like to do?
Miscellaneous bash history settings
# enable keeping history timestamps and set display format to ISO-8601
# ignore duplicates and commands starting with space
# ignore specific commands (full-length match)
HISTIGNORE=”?:cd:ls:ll:bg:fg:vim:git status”
# disable terminal flow control key binding, so that ^S will search history forward
stty -ixon
# make Ctrl-up/down search history for commands starting with currently
# typed prefix (unlike Ctrl-R/S, which searches entire command string).
"\e[5A": history-search-backward
"\e[5B": history-search-forward
"\e\e[A": history-search-backward
"\e\e[B": history-search-forward
# Also bind this to up and down arrow
"\e[A": history-search-backward
"\e[B": history-search-forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.