Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Store your zsh history into a sqlite3 database. Parent comment
> 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.
There are no comments on this comment yet.
> 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.