clean: now run git gc

This commit is contained in:
Geoffrey Frogeye 2016-02-20 23:56:34 +01:00
parent 610167c8e3
commit 51f7253d74

8
bashrc
View file

@ -97,13 +97,17 @@ alias FUCK='fuck'
# Functions # Functions
function clean { function clean {
find ~/Documents/ -type d -name bower_components -or -name node_modules -print0 | while read file; do find . -type d -name bower_components -or -name node_modules -print0 | while read file; do
rm -rf "$file" rm -rf "$file"
done done
find Documents/ -type f -name Makefile -print0 | while IFS= read -r -d '' file; do find . -type f -name Makefile -print0 | while IFS= read -r -d '' file; do
echo "--> $file" echo "--> $file"
(cd "${file//Makefile}"; make clear; make clean) (cd "${file//Makefile}"; make clear; make clean)
done done
find . -type d -name .git -print0 | while IFS= read -r -d '' dir; do
echo "--> $file"
(cd "$dir"; git gc)
done
} }
function dafont { function dafont {