Skip to content

Instantly share code, notes, and snippets.

@mcnemesis
Created June 10, 2022 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcnemesis/cf4d787fb293aad059ceccdd8a92f552 to your computer and use it in GitHub Desktop.
Save mcnemesis/cf4d787fb293aad059ceccdd8a92f552 to your computer and use it in GitHub Desktop.
Have Fun in Bash Shell
# place the following into somewhere like /etc/bash.bashrc.local
# then import into your bash terminals via ~/.bashrc with:
# source /etc/bash.bashrc.local
function fun {
R=$(($RANDOM % 4))
if [[ $R -eq 1 ]]
then
sl
elif [[ $R -eq 2 ]]
then
echo "try 'asciiview PATH' to make some text art now"
elif [[ $R -eq 3 ]]
then
aafire
else
fortune | cowsay
fi
}
# then in any bash terminal, just have fun with invoking
fun
# to get some of the commands in fun working, consult this article:
# https://shambhavishandilya.medium.com/linux-commands-to-have-fun-on-terminal-2df8da483d59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment