4 ms·
anyone know of something like this for bash?
by torbjorn 9y ago
anyone know of something like this for bash?
- pmoriarty 9y agohttps://github.com/barabo/advanced-shell-history https://github.com/barabo/advanced-shell-history
- tenken 9y agohttps://pypi.python.org/pypi/rash https://pypi.python.org/pypi/rash
- thenewwazoo 9y agohttps://github.com/thenewwazoo/bash-history-sqlite https://github.com/thenewwazoo/bash-history-sqlite
- saurik 9y agohttps://news.ycombinator.com/item?id=10695305 https://news.ycombinator.com/item?id=10695305
- wingerlang 9y agoI 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.