xonecas.io
433
Sg

shell-greeting / commit 6a06439

Refactor to a smaller selection of cows

sean2022-07-14 6a064390faaf22c57f852b68a6ddfcf7ab300ae1 parent 2185323

1 file changed

greeting.sh+17−5
@@ -3,8 +3,20 @@
33 # Depends on fortune, cowsay, lolcat and pfetch.
44 # Simply source this file from your ./bashrc or ./bash_profile
55
6-cow=$(ls /usr/share/cowsay/cows | sort -R | tail -1)
7-fortune | cowsay -f $cow | lolcat --seed 0 --spread 1.0
8-echo
9-echo " ($cow)" | lolcat
10-PF_INFO="title os host kernel uptime pkgs memory" pfetch
6+cows=(
7+ 'www.cow'
8+ 'vader.cow'
9+ 'unipony-smaller.cow'
10+ 'three-eyes.cow'
11+ 'skeleton.cow'
12+ 'sheep.cow'
13+ 'moose.cow'
14+ 'moofasa.cow'
15+ 'flaming-sheep.cow'
16+ 'default.cow'
17+ 'cower.cow'
18+)
19+
20+cows=( $(shuf -e "${cows[@]}") )
21+fortune | cowsay -f ${cows[0]} | lolcat -p 1.0 -F 0.06 -S $(echo $RANDOM)
22+PF_INFO="title os host kernel uptime memory" pfetch