Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HISTFILESIZE=400000000
- HISTSIZE=10000
- PROMPT_COMMAND="history -a"
- export HISTSIZE PROMPT_COMMAND
- shopt -s histappend
- # backup history/warn about deleted history
- if (( $(wc -l < ~/.bash_history) < 5000 ))
- then
- echo "#########################"
- echo ".bash_history was cleared"
- echo "#########################"
- else
- cp ~/.bash_history ~/.bash_history.back
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement