Skip to content

Instantly share code, notes, and snippets.

@atao
Created December 1, 2022 13:27
Show Gist options
  • Save atao/0f335e9af923399564fab69401e4fa3b to your computer and use it in GitHub Desktop.
Save atao/0f335e9af923399564fab69401e4fa3b to your computer and use it in GitHub Desktop.
#!/bin/bash
if ! command -v toilet -h &> /dev/null
then
echo "toilet could not be found"
exit
fi
if (( $# == 0 )); then
echo "No parameters provided"
else
POOL=(metal gay)
color=$(shuf -e ${POOL[@]} -n1)
date '+%D %T' | toilet -f term -F border "--$color"
toilet "--$color" -t $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment