summaryrefslogtreecommitdiff
path: root/bin/common/goo
blob: cfd03ec6c634c4ed9e5cab2c145aa577f69c5b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

exclude="
.cache 
.mozilla
.npm
.git
site-packages
objects
instances
discord
Steam
?eclipse
VisualParadigm
intellij
arduino15"

for dir in $exclude; do
    dirs="$dirs -name \"$dir\" -o "
done
cmd="find ${2:-$HOME} \(${dirs} -false \) -prune -o -type ${1:-f} -mindepth 1 -print"

eval "$cmd" 2>/dev/null