Skip to content

Instantly share code, notes, and snippets.

@Gen2ly
Created September 12, 2014 21:18

Revisions

  1. Gen2ly created this gist Sep 12, 2014.
    7 changes: 7 additions & 0 deletions bash-history-settings.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Command | Description
    -------------------- | ------------------------------------------------------
    HISTSIZE | Commands saved in memory number (default: 500)
    HISTFILESIZE | Commands saved in history file (default: 500)
    HISTCONTROL | **erasedups**: erase previous duplicates
    shopt -s histappend | History additions are appended rather than overwritten
    history -a | Adds to history immediately?!