Skip to content

Instantly share code, notes, and snippets.

@GeneralD
Created November 5, 2018 15:07
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 GeneralD/585aa2495d9144968ca99579ddd0ea6b to your computer and use it in GitHub Desktop.
Save GeneralD/585aa2495d9144968ca99579ddd0ea6b to your computer and use it in GitHub Desktop.
# flippy
if which flippy 1>/dev/null; then
# usage: "F string" or "echo string | F"
alias -g F=__flippy
__flippy () {
if [[ $# > 0 ]]; then
flippy $@
else
local s
while read s; do
flippy $s
done
fi
}
fi
fortune -o | F | tac | lolcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment