Updated scripts

This commit is contained in:
z3rOR0ne 2022-07-07 13:05:06 -07:00
parent eef4fdf99c
commit d0aead5a9c
14 changed files with 386 additions and 99 deletions

View file

@ -1,5 +1,11 @@
#!/bin/bash
last_line_first_word=$(awk '{w=$1} END{print w}' $HOME/.zshrc)
if [[ $last_line_first_word == "export" ]] ; then
sed -i '$ d' $HOME/.zshrc
fi
if [ -d "$HOME/.recycle-bin" ] ; then
doas rm -r "$HOME/.recycle-bin/" && doas reboot
else