aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/app.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-23 01:47:17 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-23 01:47:17 +0530
commit253f2f5ef9eb0d95639d259a48875d76d3ecab75 (patch)
tree831e4cb25dada5f498a2ffc9f874eade9632497a /Emacs/.config/emacs/app.org
parent6782fce8899a98929fa34920e72d1325124a5ad6 (diff)
downloaddotfiles-253f2f5ef9eb0d95639d259a48875d76d3ecab75.tar.gz
dotfiles-253f2f5ef9eb0d95639d259a48875d76d3ecab75.tar.bz2
dotfiles-253f2f5ef9eb0d95639d259a48875d76d3ecab75.zip
(Emacs/app)+randomise banner-message's cowsay
Diffstat (limited to 'Emacs/.config/emacs/app.org')
-rw-r--r--Emacs/.config/emacs/app.org10
1 files changed, 9 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org
index 30f845a..bfea843 100644
--- a/Emacs/.config/emacs/app.org
+++ b/Emacs/.config/emacs/app.org
@@ -506,9 +506,17 @@ changes that haven't been committed).
"\n"
'("𝜆> " :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))))
+ "\n"))
+
(setq eshell-cmpl-ignore-case t
eshell-cd-on-directory t
- eshell-banner-message (concat (shell-command-to-string "fortune | cowsay") "\n")
+ eshell-banner-message '(+eshell/banner-message)
eshell-highlight-prompt nil
eshell-prompt-function #'+eshell/prompt-function
eshell-prompt-regexp "^𝜆> "))