aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 01:17:29 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 01:17:29 +0530
commit2450e47882750f1a46911f99503a068df84c2181 (patch)
treed06249a30dc412553fc212ca1a85c2a3814cffe0 /Emacs
parent907068b34d7d65d7f30abe30f34c870d1b27e66b (diff)
downloaddotfiles-2450e47882750f1a46911f99503a068df84c2181.tar.gz
dotfiles-2450e47882750f1a46911f99503a068df84c2181.tar.bz2
dotfiles-2450e47882750f1a46911f99503a068df84c2181.zip
(Scripts|Emacs/app)~ported eshell banner to a script
Instead of doing it all in Emacs lisp (which while pretty fun to write, is not fun to execute outside of Emacs), I wrote a shell script which generates the same banners, then just linked +eshell/banner-message to it.
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/app.org6
1 files changed, 1 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