bashrc: Add function to find files in repo without .git folder
This commit is contained in:
1 parent
3b942a5cde
commit
d2bf30770d
1 file changed
+16
@@ -63,6 +63,22 @@ d2h(){
|
|||||||
echo "obase=16; $@"|bc
|
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
|
# kill baloo utils
|
||||||
baloo_clean(){
|
baloo_clean(){
|
||||||
sudo killall baloo_file
|
sudo killall baloo_file
|
||||||
|
|||||||
Reference in new issue
Block a user