Skip to content

Instantly share code, notes, and snippets.

@jenrik
Created July 16, 2024 13:45
Show Gist options
  • Save jenrik/217b0ff19b1180321398dd0d457cf56d to your computer and use it in GitHub Desktop.
Save jenrik/217b0ff19b1180321398dd0d457cf56d to your computer and use it in GitHub Desktop.
sep()
{
(
if type "cowsay" > /dev/null < /dev/null; then
cowsay "separator"
cowsay "separator"
cowsay "separator"
else
echo "*-----------*"
echo "| separator |"
echo "| separator |"
echo "| separator |"
echo "*-----------*"
fi
) | \
(
if type "lolcat" > /dev/null < /dev/null; then
lolcat -t -F 0.3
else
cat -
fi
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment