refactor bashrc's to bash folder and vimrc's to vim folder

This commit is contained in:
Wryn Wagner
2019-08-20 09:52:04 -06:00
parent 613e4799de
commit 9f2276c4e3
9 changed files with 39 additions and 16 deletions

View File

@ -45,14 +45,14 @@ function rntbranchcleanup() {
for dir in $(ls $RD_PATH); do
rnt $dir >/dev/null 2>/dev/null;
if [ -d .git ]; then
printf "clearing repository $dir...";
printf " - %s\e[1;34m %s\e[0m..." "clearing repository" "$dir";
git branch -d $(git branch | sed -E "/develop|master|\*/d") >/dev/null 2>/dev/null;
printf "done!\n";
printf "\e[1;32m%s\e[0m\n" " DONE";
else
echo $dir is not a git repository;
printf " - \e[1;34m%s\e[1;31m %s\e[0m" "$dir" "is not a git repository";
fi
rnt;
done;
echo && echo RentDynamics repository branches all clean!
printf "\n\n\e[1;36m%s\e[1;35m %s\e[0m\n\n" "RentDynamics" "repository branches all clean!";
}