Quantcast
Channel: Day to day stuff
Viewing all articles
Browse latest Browse all 83

Bash history backup

$
0
0
I like my bash history, and I proudly have this in my .bash_profile: # Increase bash history size, append instead of overwrite history on exit export HISTSIZE=10000000 export HISTCONTROL=erasedups shopt -s histappend However, after reading about Historian I realised I have no backup. Instead of installing Historian, I decided to take a simpler approach. Here it is: #!/bin/bash set -euo

Viewing all articles
Browse latest Browse all 83

Trending Articles