From 602217e71bb20de4da6604e1eee453d02f78e4f4 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 28 Jul 2025 10:59:46 +0100 Subject: [PATCH] bash: use fortune if available --- bashrc | 5 +++++ bashrc.d/local/secbri-vmhost-1.bash | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index 02bb467..1d3381c 100644 --- a/bashrc +++ b/bashrc @@ -101,4 +101,9 @@ if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then source ${HOME}/.bashrc.d/local/${HOSTNAME}.bash fi +if [ -d "$HOME/data/fortunes" -a -x "$(which fortune)" ] ; then + echo + fortune "$HOME/data/fortunes" +fi + # export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket" diff --git a/bashrc.d/local/secbri-vmhost-1.bash b/bashrc.d/local/secbri-vmhost-1.bash index a7e019f..93ad55a 100644 --- a/bashrc.d/local/secbri-vmhost-1.bash +++ b/bashrc.d/local/secbri-vmhost-1.bash @@ -29,6 +29,3 @@ alias m2='mutt -F ~/.muttrc-imap' alias k="khal interactive" alias r="ranger" - -echo -fortune ~/data/mwlfortune ~/data/mycookies