Cleaner random cow for cowsay 👍
This commit is contained in:
parent
c8ec4e2996
commit
ac5b1ef122
3
zshrc
3
zshrc
|
@ -1255,7 +1255,8 @@ function bonjour() {
|
|||
if [ $(command -v bash_quote) ] && [ $(command -v cowsay) ]; then
|
||||
if [ $MODULO_MIN -eq 0 ]; then
|
||||
#echo Bonjour $USER, nous sommes le `date +"%A %e %B %Y"`, et il est : `date +"%H"` h `date +"%M"` | cowsay -f $(/bin/ls /usr/share/cowsay/cows -1 | head -n $(expr $$$(date +%s) % $(ls /usr/share/cowsay/cows | wc -w) + 1) | tail -n 1)
|
||||
command bash_quote | cowsay -f $(/bin/ls /usr/share/cowsay/cows -1 | head -n $(expr $$$(date +%s) % $(ls /usr/share/cowsay/cows | wc --words) + 1) | tail --lines=1)
|
||||
# Random cow
|
||||
command bash_quote | cowsay -f $(find /usr/share/cow* -type f -iname "*.cow" | sort --random-sort | head --lines=1)
|
||||
else
|
||||
#echo Bonjour $USER, nous sommes le `date +"%A %e %B %Y"`, et il est : `date +"%H"` h `date +"%M"` | ponythink
|
||||
command bash_quote | ponythink
|
||||
|
|
Loading…
Reference in New Issue