mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
* Update history.sh Add comment/documentation on why .bash_history is cleared Signed-off-by: Patrick Robertson <robertson.patrick@gmail.com> * Add comment about history.sh to bash_profile as well (#1) Signed-off-by: Patrick Robertson <robertson.patrick@gmail.com> --------- Signed-off-by: Patrick Robertson <robertson.patrick@gmail.com> Co-authored-by: Daniel Hansson <mailto@danielhansson.nu>
8 lines
199 B
Bash
8 lines
199 B
Bash
#!/bin/sh
|
|
|
|
# Security measure: clear .bash_history by default on login
|
|
# For more info: https://github.com/nextcloud/vm/issues/2481#issuecomment-1529175048
|
|
truncate -s0 "$HOME/.bash_history"
|
|
|
|
exit 0
|