bash: use fortune if available

This commit is contained in:
2025-07-28 10:59:46 +01:00
parent 1ee79acbc6
commit 602217e71b
2 changed files with 5 additions and 3 deletions

5
bashrc
View File

@@ -101,4 +101,9 @@ if [ -f ${HOME}/.bashrc.d/local/${HOSTNAME}.bash ] ; then
source ${HOME}/.bashrc.d/local/${HOSTNAME}.bash source ${HOME}/.bashrc.d/local/${HOSTNAME}.bash
fi 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" # export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"

View File

@@ -29,6 +29,3 @@ alias m2='mutt -F ~/.muttrc-imap'
alias k="khal interactive" alias k="khal interactive"
alias r="ranger" alias r="ranger"
echo
fortune ~/data/mwlfortune ~/data/mycookies