News for hackers. Stuff that matters.
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?
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 tenken on Thursday August 17, 2017 @08:15PM (#15042281)
Re:Store your zsh history into a sqlite3 database by pmoriarty on Thursday August 17, 2017 @07:56PM (#15042184)
Re:Store your zsh history into a sqlite3 database by thenewwazoo on Friday August 18, 2017 @02:14AM (#15043977)
Re:Store your zsh history into a sqlite3 database by saurik on Friday August 18, 2017 @03:11AM (#15044175)