Created
June 24, 2015 20:03
-
-
Save johntyree/17dabece34f8e6c7ab52 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# Don't put duplicate lines in the history | |
export HISTCONTROL=ignoredups | |
# Store a lot history entries in a file for grep-age | |
shopt -s histappend | |
export HISTFILE=~/long_history | |
export HISTFILESIZE=50000 | |
# No reason not to save a bunch in history | |
# Takes up several more MBs of RAM now, oOOOooh | |
export HISTSIZE=9999 | |
# Ignore dupe commands and other ones you don't care about | |
export HISTIGNORE="&:[ ]*:exit" | |
# Up and down arrow to search | |
bind '"\e[A": history-search-backward' | |
bind '"\e[B": history-search-forward' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment