diff options
author | Elizabeth <lizhunt@amazon.com> | 2025-05-28 15:39:58 -0700 |
---|---|---|
committer | Elizabeth <lizhunt@amazon.com> | 2025-05-28 15:39:58 -0700 |
commit | 1c2bd3faf3a1f0cd456a25b19ec404e1f79518c3 (patch) | |
tree | fc9dfd41e8b5769a4d178e0a9e7173a1c005f425 /home/scripts/greet.sh | |
parent | daa475736378bb3c9a9c24307cb1f37603057f32 (diff) | |
download | dotfiles-1c2bd3faf3a1f0cd456a25b19ec404e1f79518c3.tar.gz dotfiles-1c2bd3faf3a1f0cd456a25b19ec404e1f79518c3.zip |
Add smarter templating thanks to AI
Diffstat (limited to 'home/scripts/greet.sh')
-rwxr-xr-x | home/scripts/greet.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/home/scripts/greet.sh b/home/scripts/greet.sh index 00b6be5..cb2aae5 100755 --- a/home/scripts/greet.sh +++ b/home/scripts/greet.sh @@ -4,12 +4,12 @@ source log.sh "greet.sh" pick_greeting() { path="$1" greetings=("$1"/*) - greeting="${greetings[$RANDOM % ${#greetings[@]}]}" - echo "$greeting" + greeting_path="${greetings[$RANDOM % ${#greetings[@]}]}" + echo "$greeting_path" } GREETINGS_LIST="$XDG_CONFIG_HOME/zsh/greetings" -if [ ! -d "$GREETINGS_LIST" ]; then +if [ ! -d "$GREETINGS_LIST" ]; then log DEBUG "no such file $GREETINGS_LIST" exit 0 fi |