aboutsummaryrefslogtreecommitdiff
path: root/home/scripts/greet.sh
diff options
context:
space:
mode:
authorElizabeth <me@liz.coffee>2025-06-02 13:11:10 -0700
committerElizabeth <me@liz.coffee>2025-06-02 13:11:10 -0700
commitd098e94ad102da9d018acca72ca5a5c554d25a01 (patch)
treed6d23ee63ad5a1aa4017a605d9e09e75de2c5f49 /home/scripts/greet.sh
parentede675866355d34ac9fdc1b8e047576f574bdfa2 (diff)
downloaddots-d098e94ad102da9d018acca72ca5a5c554d25a01.tar.gz
dots-d098e94ad102da9d018acca72ca5a5c554d25a01.zip
Update paths n stuff
Diffstat (limited to 'home/scripts/greet.sh')
-rwxr-xr-xhome/scripts/greet.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/home/scripts/greet.sh b/home/scripts/greet.sh
deleted file mode 100755
index cb2aae5..0000000
--- a/home/scripts/greet.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-source log.sh "greet.sh"
-
-pick_greeting() {
- path="$1"
- greetings=("$1"/*)
- greeting_path="${greetings[$RANDOM % ${#greetings[@]}]}"
- echo "$greeting_path"
-}
-
-GREETINGS_LIST="$XDG_CONFIG_HOME/zsh/greetings"
-if [ ! -d "$GREETINGS_LIST" ]; then
- log DEBUG "no such file $GREETINGS_LIST"
- exit 0
-fi
-
-for greetings in $(ls "$GREETINGS_LIST" | sort); do
- echo
- log DEBUG "greeting $greetings"
-
- path="$GREETINGS_LIST/$greetings"
- if [ ! -d "$path" ]; then
- log DEBUG "greetings $path is not a directory"
- continue
- fi
-
- greeting=$(pick_greeting "$path")
- cat "$greeting"
-done