aboutsummaryrefslogtreecommitdiffstats
path: root/sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-24 21:26:54 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-24 21:26:54 +0000
commita2c685f04294da1da671bfb378514b12f8532c97 (patch)
treec39923a7f883cc0b4a478251b2cb3f6407e746e5 /sh
parentirssi config (diff)
downloadscripts-a2c685f04294da1da671bfb378514b12f8532c97.tar.gz
scripts-a2c685f04294da1da671bfb378514b12f8532c97.zip
scotch now leaves normal data alone. added battery to tmux.
Diffstat (limited to 'sh')
-rw-r--r--sh/lib.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/sh/lib.sh b/sh/lib.sh
index 1ce5acb..64ba3f7 100644
--- a/sh/lib.sh
+++ b/sh/lib.sh
@@ -53,3 +53,31 @@ copy_pam_mod_deps() {
copy_to_stash $MOD_ABS "$DEP_LIST" $2 $3
done
}
+
+dig() {
+ globalholecounter=0
+ if test "$("ls" -A "/home/devi/devi/abbatoir")"; then
+ while [ 1 ]; do
+ if [ -d "/home/devi/devi/abbatoir/hole$globalholecounter" ]; then
+ # if its not empty
+ if test "$("ls" -A "/home/devi/devi/abbatoir/hole$globalholecounter")"; then
+ :
+ # if its empty
+ else
+ cd /home/devi/devi/abbatoir/hole$globalholecounter
+ break
+ fi
+ else
+ mkdir /home/devi/devi/abbatoir/hole$globalholecounter
+ cd /home/devi/devi/abbatoir/hole$globalholecounter
+ echo $globalholecounter
+ break
+ fi
+ $((globalholecounter=globalholecounter+1))
+ done
+ else
+ mkdir /home/devi/devi/abbatoir
+ mkdir /home/devi/devi/abbatoir/hole$globalholecounter
+ cd /home/devi/devi/abbatoir/hole$globalholecounter
+ fi
+}