Re:Store your zsh history into a sqlite3 database
by torbjorn on Thursday August 17, 2017 @07:52PM
(#15042157)
anyone know of something like this for bash?
[ Parent
| on HN ]
Re:Store your zsh history into a sqlite3 database
by wingerlang on Friday August 18, 2017 @03:12AM
(#15044184)
I use this:
> export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'
It just logs everything into files per date, have come in handy at times.
Re:Store your zsh history into a sqlite3 database
by thenewwazoo on Friday August 18, 2017 @02:14AM
(#15043977)