bashrc: Add function to find files in repo without .git folder

This commit is contained in:
Mickaël Tansorier committed 2022-11-08 17:35:14 +01:00
1 parent 3b942a5cde
commit d2bf30770d
1 file changed
+16
+16
View File
@@ -63,6 +63,22 @@ d2h(){
echo "obase=16; $@"|bc
}
findrepo(){
if [ ! -z "$1" ]; then
find "$1" -not -path "*/\.git/*";
else
find . -not -path "*/\.git/*";
fi
}
findrepofiles(){
if [ ! -z "$1" ]; then
find "$1" -type f -not -path "*/\.git/*";
else
find . -type f -not -path "*/\.git/*";
fi
}
# kill baloo utils
baloo_clean(){
sudo killall baloo_file