Browse Source

Add safe_lolcat

master
10sr 6 years ago
parent
commit
54b5293f4d
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
2 changed files with 16 additions and 4 deletions
  1. +5
    -0
      emacs.el
  2. +11
    -4
      shrc

+ 5
- 0
emacs.el View File

@@ -714,6 +714,11 @@ found, otherwise returns nil."
(when (safe-require-or-eval 'autosave) (when (safe-require-or-eval 'autosave)
(autosave-set 8)) (autosave-set 8))



;; bookmarks

(define-key ctl-x-map "m" 'list-bookmarks)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; buffer killing ;; buffer killing




+ 11
- 4
shrc View File

@@ -184,17 +184,24 @@ fi
###################### ######################
# Print welcome messages # Print welcome messages


if command -v lolcat >/dev/null
then
alias __safe_lolcat=lolcat
else
alias __safe_lolcat=cat
fi

command -v fortune >/dev/null && { command -v fortune >/dev/null && {
if command -v cowsay >/dev/null if command -v cowsay >/dev/null
then then
fortune | cowsay
fortune | cowsay | __safe_lolcat
echo echo
fortune -o | cowsay
fortune -o | cowsay | __safe_lolcat
echo echo
else else
fortune
fortune | __safe_lolcat
echo echo
fortune -o
fortune -o | __safe_lolcat
echo echo
fi fi
} }


Loading…
Cancel
Save