Skip to content

Instantly share code, notes, and snippets.

@sw17ch
Created August 29, 2013 19:02
Show Gist options
  • Save sw17ch/6382085 to your computer and use it in GitHub Desktop.
Save sw17ch/6382085 to your computer and use it in GitHub Desktop.
The most important lines in my .bash_profile
export HISTCONTROL=erasedups
export HISTSIZE=500
export HISTIGNORE=ls:'ls -l':fg
@brondsem
Copy link

And if you have multiple shells open on the same host:

# append to the history file, don't overwrite it
shopt -s histappend

P.S. my HISTSIZE is 25000. Why not? :)

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