Created
November 5, 2018 15:07
-
-
Save GeneralD/585aa2495d9144968ca99579ddd0ea6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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