项目作者: JKirchartz

项目描述 :
My personal collection of Fortune files
高级语言: Python
项目地址: git://github.com/JKirchartz/fortunes.git
创建时间: 2016-12-15T21:43:39Z
项目社区:https://github.com/JKirchartz/fortunes

开源协议:The Unlicense

下载


Fortune Files

Quote databases have a line or lines containing a quote, then a line that only contains a ‘%’ (percent sign) to separate it from the others. ex:

  1. Let's just pretend Quote 1 is very
  2. ...very...
  3. ...very...
  4. long.
  5. %
  6. and quote 2 is short
  7. %

after adding or altering a new file recreate the index files for

  1. strfile <filename>

you can compile every fortune file in this directory with make

use these with fortune like:

  1. fortune ~/path/to/this/repo/named/fortunes

or you can combine these with the fortune files already on your system by asking fortune where it’s databases are like so:

  1. fortune ~/path/to/this/repo/named/fortunes $(fortune -f 2>&1 | head -n1 | cut -d' ' -f2)