A humane alternative to the monstrous fortune-cookie*: prints at login a random line from a text file
Fortune cookie's files are too complicated to edit!
- copy dailytip.py to your $PATH, e.g. /usr/local/bin
- chmod a+x /usr/local/bin/dailytip.py
- copy .dailytiprc to your $HOME
- put a text file, (line delimited), in $HOME/.dailytip.txt (configurable via .dailytiprc)
- add to your shell's rc file (e.g. .bashrc) the command "dailytip.py"
This process is not the most efficient: it'll load all the lines and choose a random one. for files under 10mb, in modern desktops, it goes unnoticed.
- deal with long lines
_* pun intended