Skip to content

Commit

Permalink
Update history.sh
Browse files Browse the repository at this point in the history
Add comment/documentation on why .bash_history is cleared

Signed-off-by: Patrick Robertson <[email protected]>
  • Loading branch information
pjrobertson authored Dec 22, 2023
1 parent 386118f commit 6e7af4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/history.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/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

0 comments on commit 6e7af4b

Please sign in to comment.