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

main
Mickaël Tansorier 2 years ago
parent 3b942a5cde
commit d2bf30770d

@ -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

Loading…
Cancel
Save