Files

2 lines
213 B
Bash
Raw Permalink Normal View History

2025-10-10 22:18:06 +07:00
source /root/.preexec.sh
preexec() { curl -s -X POST -H 'Content-Type: application/json' -d "{\"log\": \"[$(date +'%Y-%m-%d %H:%M:%S')][$(hostname)] $1\"}" http://host.docker.internal:18080/history > /dev/null; }