diff --git a/scripts/reboot.sh b/scripts/reboot.sh index 60020ce8..1b852aa8 100755 --- a/scripts/reboot.sh +++ b/scripts/reboot.sh @@ -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 reboot else diff --git a/scripts/shutdown.sh b/scripts/shutdown.sh index 338d3dc8..c0180ec3 100755 --- a/scripts/shutdown.sh +++ b/scripts/shutdown.sh @@ -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