the_earnest/dotfiles

added hardcoded pruning of Android directory, in function f()

Commit 033bbaab3d61 · The Earnest · 2026-11-18 23:22 +0000

Changeset
033bbaab3d614d9399802c66fb8747bab3dfda4c

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/godir/godir.bash b/godir/godir.bash
--- a/godir/godir.bash
+++ b/godir/godir.bash
@@ -1,10 +1,11 @@
 function f {
-	FINDCMD="find"
+	FINDCMD="find -type d -path '*/Android' -prune -o"
 	for i in "$@"; do
 		FINDCMD+=" -iname '"
 		FINDCMD+='*'"$i"'*'
 		FINDCMD+=\'
 	done
+	FINDCMD+=" -print"
 	echo FINDCMD=$FINDCMD
 	eval "$FINDCMD"
 }