diff --git a/.bashrc b/.bashrc index 57c60f1..da61b3f 100644 --- a/.bashrc +++ b/.bashrc @@ -3,7 +3,7 @@ if [[ $- != *i* ]] ; then fi alias ls="ls -a --color" -alias comp="make && doas make install" +alias comp="make && doas make install && make clean" alias edit="sh /home/andrew/.config/suckless/dwm/scripts/edit-suckless.sh" alias update_world="doas emerge --ask --update --newuse --deep @world" alias env="sh /home/andrew/dotfiles/env.sh" diff --git a/.config/suckless/dwm/scripts/edit-suckless.sh b/.config/suckless/dwm/scripts/edit-suckless.sh index 82a5a72..9c4989d 100755 --- a/.config/suckless/dwm/scripts/edit-suckless.sh +++ b/.config/suckless/dwm/scripts/edit-suckless.sh @@ -53,7 +53,8 @@ AFTER_HASH=$(sha256sum config.h | cut -d ' ' -f1) if [[ "$BEFORE_HASH" != "$AFTER_HASH" || "$REBUILD" == true ]]; then echo "Rebuilding $APP..." make - doas make clean install + doas make install + make clean pkill dwm else echo "No changes detected. Skipping rebuild." diff --git a/env.sh b/env.sh index a319210..25afe8a 100755 --- a/env.sh +++ b/env.sh @@ -58,5 +58,5 @@ fc-cache -f echo -e "${GREEN}Rebuilding Suckless Software${RESET}" for x in "${CONFIG}suckless"/*/; do [[ -d "${x}" ]] || continue - cd "${x}" && make && doas make install + cd "${x}" && make && doas make install && make clean done