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

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

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

eval "$cmd" 2>/dev/null