Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Maximum number of history lines in memory
  2. export HISTSIZE=50000
  3. # Maximum number of history lines on disk
  4. export HISTFILESIZE=50000
  5. # Ignore duplicate lines
  6. export HISTCONTROL=ignoredups:erasedups
  7. # When the shell exits, append to the history file
  8. # instead of overwriting it
  9. shopt -s histappend
  10.  
  11. # After each command, append to the history file
  12. # and reread it
  13. export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement