export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/stuff/logs/bash-history-$(date "+%Y-%m-%d").log; fi'
stuff/logs/bash-history-2023-05-06.log
2023-05-06.11:42:38 /home/dv 3737 2023-05-06 11:42:38 cat .bashrc