diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-28 11:30:00 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-28 11:30:00 +0200 |
commit | d3374ddd385dc794e9d57f775baebd1aa8066191 (patch) | |
tree | f677cd4e9d2c48e351d28e56e96b1186c426e9f4 /bin/common/fhome | |
parent | 91d62c119070a3bb3a92bf10accf827c5dc5d5c3 (diff) |
use one fhome script instead of three one liner scripts
Diffstat (limited to 'bin/common/fhome')
-rwxr-xr-x | bin/common/fhome | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/common/fhome b/bin/common/fhome new file mode 100755 index 0000000..cba1beb --- /dev/null +++ b/bin/common/fhome @@ -0,0 +1,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 |