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
↧