diff options
-rw-r--r-- | Emacs/.config/emacs/app.org | 6 | ||||
-rwxr-xr-x | Scripts/.local/scripts/cowfortune | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org index 4791444..590bd4d 100644 --- a/Emacs/.config/emacs/app.org +++ b/Emacs/.config/emacs/app.org @@ -512,11 +512,7 @@ changes that haven't been committed). '("𝜆> " :foreground "DeepSkyBlue"))))) (defun +eshell/banner-message () - (concat (shell-command-to-string - (let ((possible-cows '("default" "cower" "moofasa" "moose" - "mutilated" "satanic" "sheep" - "small" "tux" "vader"))) - (format "fortune | cowsay -f %s" (nth (random (length possible-cows)) possible-cows)))) + (concat (shell-command-to-string "~/.local/scripts/cowfortune") "\n")) (setq eshell-cmpl-ignore-case t diff --git a/Scripts/.local/scripts/cowfortune b/Scripts/.local/scripts/cowfortune new file mode 100755 index 0000000..d78a950 --- /dev/null +++ b/Scripts/.local/scripts/cowfortune @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +cow=$(echo -e "default\ncower\nmoofasa\nmoose\nmutilated\nsatanic\nsheep\nsmall\ntux\nvader" | shuf | head -1) + +fortune | cowsay -f $cow |