Browse files

Display help

  • Loading branch information...
1 parent 5473921 commit 064060e3839b25f599585ca5ec42d4501781f42e Walter Stanish committed May 29, 2014
Showing with 12 additions and 2 deletions.
  1. +12 −2
@@ -1,5 +1,5 @@
-The Tao of Unix Programming
+TAO (The Art) of Unix Programming
This is a ruby-powered, ANSI-enabled, fortune-like program to espouse wisdom at
opportune moments, such as when you log in.
@@ -8,3 +8,13 @@ To get it running, make sure you have `ruby` and `gem` installed, then run:
`gem install ansi`
After that, it should work fine.
+To have it display on login, you could try something like this:
+/path/to/taoup |grep -v '^---' | while read line;do echo $RANDOM'|'$line;done |sort|cut -d"|" -f2- | head -n 1 | cowsay -f eyes -n |head -n 2 |tail -n 1
+echo '' | cowsay -f eyes |tail -n 10 |sed 's/^//'
+That `while read line...done` stuff is an ugly hack for portable random `sort`.
+(If you don't yet have `cowsay`, stop reading right now and get it installed!)

0 comments on commit 064060e

Please sign in to comment.