Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add rainbows to your terminal!
- Requirements:
- + A UNIX, Linux, Mac OS X, or similar system with command-line.
- + The Bourne-Again Shell (bash)
- + The lolcat utility
- If you're using FreeBSD, you can install bash and lolcat with the following commands:
- % pkg install bash
- % pkg install rubygem-lolcat
- With those two things installed (bash and lolcat), there's just one thing left to do.
- Download my bash_profile to your home directory and name it ".bash_profile".
- FreeBSD:
- % fetch http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
- Mac OS X:
- % curl -LO http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
- Linux:
- % wget http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
- Then just move it to ".bash_profile" (e.g., "mv bash_profile ~/.bash_profile").
- Enjoy! ^_^
- ! What you need to know !
- + Interactive commands such as vi, man, more, less, ... automatically bypass lolcat
- + Commands containing "|" (the pipe character) will bypass lolcat
- + If the first word contains non-alpha-numeric or underscore (e.g., /bin/ls), lolcat is bypassed
- + If the first word is an exclamation point by itself (e.g., "! ls"), lolcat is bypassed
- + You can bypass lolcat by putting a "\" at the start of the word (e.g., "\ls") -- similar to how you would bypass an alias
- !!! BONUS INFO BELOW !!!
- Temporarily disable
- % -lol
- Re-enable
- % +lol
- Change the program that is used (default "lolcat"):
- % +lol cowsay
- (requires "pkg install cowsay" on FreeBSD)
- !!! EVEN MORE GREAT STUFF !!!
- Turn your cowsay into unicornsay:
- + Download "unicorn.cow" from here https://github.com/schacon/cowsay/pull/13
- Direct Download: https://raw.githubusercontent.com/CupOfTea696/cowsay/1de327837280f1d650e14ff1d138247e10e6982b/cows/unicorn.cow
- + Put it in ~/bin/unicorn.cow
- If you used my bash_profile from the above URL, you now have unicornsay and unicornthink ;D
- !!! FRIGGIN RAINBOWS WITH UNICORNS !!!
- % +lol "unicornthink | lolcat"
- % echo "Hello, World!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement