From ac5b1ef122359326721fbf861eaf7c76b8019efa Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 30 Aug 2023 18:00:19 +0200 Subject: [PATCH] =?UTF-8?q?Cleaner=20random=20cow=20for=20cowsay=20?= =?UTF-8?q?=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index d2ed76b..3065078 100644 --- a/zshrc +++ b/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