We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84c58a commit 20d156cCopy full SHA for 20d156c
bashrc
@@ -37,10 +37,18 @@ export EDITOR='vim'
37
38
export LESS=RSJwij.3
39
40
+
41
+# Command line history:
42
+# Append to the history file, don't overwrite it
43
+shopt -s histappend
44
+# Save after each command
45
if [[ $PROMPT_COMMAND != *"history -a"* ]]; then
46
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
47
fi
-HISTSIZE=10000
48
+# Ignore repeated entries, and set in memory and in file limits.
49
+HISTCONTROL=ignoredups
50
+HISTSIZE=2000
51
+HISTFILESIZE=2000
52
53
# Remove call to update_terminal_cwd if it doesn't exist.
54
# (it is defined by Mac OSX etc/bashrc, but not if terminal is screen)
0 commit comments