Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 711 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 711 Bytes

dailytip

A humane alternative to the monstrous fortune-cookie*: prints at login a random line from a text file

Raison d'être:

Fortune cookie's files are too complicated to edit!

Install

  1. copy dailytip.py to your $PATH, e.g. /usr/local/bin
  2. chmod a+x /usr/local/bin/dailytip.py
  3. copy .dailytiprc to your $HOME
  4. put a text file, (line delimited), in $HOME/.dailytip.txt (configurable via .dailytiprc)
  5. add to your shell's rc file (e.g. .bashrc) the command "dailytip.py"

Notes:

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.

Todo:

  • deal with long lines

_* pun intended