mozey / bash_hist

Create backups of ~/.bash_history
0 stars 0 forks source link

Use backup dirs for archived history #2

Open mozey opened 4 years ago

mozey commented 4 years ago

Currently backup files go in ${HOME}. This makes searching current and archived history easy, i.e. the hist function can grep ... ~/.bash_history*. However, it also clutters the home dir.

mozey commented 4 years ago

Instead of dirs, maybe a better option is to reduce the resolution of the back file, e.g. one archive per year?