Created
January 22, 2013 00:26
-
-
Save SuzanaK/4590905 to your computer and use it in GitHub Desktop.
Useful entries in .bashrc
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
# do not save commands in history that are pwd or clear or that have only one or two letters or that are duplicates | |
export HISTIGNORE="pwd:clear:?:??:&" | |
# do not save sequences of duplicates or commands starting with a space | |
HISTCONTROL=ignoredups:ignorespace | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=100000 | |
HISTFILESIZE=200000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment