-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make cat
download a picture of a cat.
#47
base: master
Are you sure you want to change the base?
Conversation
Meow! |
alias cat=true; | ||
# Let `cat` download a random picture of a cat, because that's what she wants | ||
# when the user typed cat, right? | ||
alias cat='wget -b -nv -q thecatapi.com/api/images/get?format=src 2> /dev/null && /bin/cat' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not save it as a .png file in /tmp and even open it everytime. 😜
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because some people should also run this evil.sh in headless servers, it could be impossible to open the png remotely if the server has no Xorg.
Unless you are running terminology and [insert name of other terminal emulator supporting this] and using Cats deserve to be seen! Meow. |
Also you should probably make this a |
suggestion: just
|
I think having cat just do nothing and return successfully ( |
Using The Cat API.
Of course that should be the function of the command cat. Who would think that
cat file.txt
should dump the file instead of downloading a picture of a cat?