Advertisement
devinteske

lolcat integration

Dec 13th, 2016
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. Add rainbows to your terminal!
  2.  
  3. Requirements:
  4.  
  5. + A UNIX, Linux, Mac OS X, or similar system with command-line.
  6. + The Bourne-Again Shell (bash)
  7. + The lolcat utility
  8.  
  9. If you're using FreeBSD, you can install bash and lolcat with the following commands:
  10.  
  11. % pkg install bash
  12. % pkg install rubygem-lolcat
  13.  
  14. With those two things installed (bash and lolcat), there's just one thing left to do.
  15. Download my bash_profile to your home directory and name it ".bash_profile".
  16.  
  17. FreeBSD:
  18. % fetch http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
  19.  
  20. Mac OS X:
  21. % curl -LO http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
  22.  
  23. Linux:
  24. % wget http://druidbsd.cvs.sf.net/viewvc/druidbsd/home/bash_profile
  25.  
  26. Then just move it to ".bash_profile" (e.g., "mv bash_profile ~/.bash_profile").
  27.  
  28. Enjoy! ^_^
  29.  
  30. ! What you need to know !
  31.  
  32. + Interactive commands such as vi, man, more, less, ... automatically bypass lolcat
  33. + Commands containing "|" (the pipe character) will bypass lolcat
  34. + If the first word contains non-alpha-numeric or underscore (e.g., /bin/ls), lolcat is bypassed
  35. + If the first word is an exclamation point by itself (e.g., "! ls"), lolcat is bypassed
  36. + You can bypass lolcat by putting a "\" at the start of the word (e.g., "\ls") -- similar to how you would bypass an alias
  37.  
  38. !!! BONUS INFO BELOW !!!
  39.  
  40. Temporarily disable
  41. % -lol
  42.  
  43. Re-enable
  44. % +lol
  45.  
  46. Change the program that is used (default "lolcat"):
  47. % +lol cowsay
  48. (requires "pkg install cowsay" on FreeBSD)
  49.  
  50. !!! EVEN MORE GREAT STUFF !!!
  51.  
  52. Turn your cowsay into unicornsay:
  53.  
  54. + Download "unicorn.cow" from here https://github.com/schacon/cowsay/pull/13
  55. Direct Download: https://raw.githubusercontent.com/CupOfTea696/cowsay/1de327837280f1d650e14ff1d138247e10e6982b/cows/unicorn.cow
  56. + Put it in ~/bin/unicorn.cow
  57.  
  58. If you used my bash_profile from the above URL, you now have unicornsay and unicornthink ;D
  59.  
  60. !!! FRIGGIN RAINBOWS WITH UNICORNS !!!
  61.  
  62. % +lol "unicornthink | lolcat"
  63. % echo "Hello, World!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement