added if statement to shutdown.sh and reboot.sh that removes zsh_history on shutdown/reboot
This commit is contained in:
parent
775989ee67
commit
acbcf8a81f
2 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f "$HOME/.zsh_history "] ; then
|
||||
rm "$HOME/.zsh_history"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.recycle-bin" ] ; then
|
||||
doas rm -r "$HOME/.recycle-bin/" && doas shutdown -h now
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue