added if statement to shutdown.sh and reboot.sh that removes zsh_history on shutdown/reboot

This commit is contained in:
tomit4 2022-06-15 13:44:30 -07:00
parent 775989ee67
commit acbcf8a81f
2 changed files with 8 additions and 0 deletions

View file

@ -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