globalcitizen/taoup
关于
Unix 编程之道(由 Ruby 驱动、带 ANSI 彩色效果的 fortune 格言)
其他项目实测星标增长
- 24小时
- +1
- 7天
- +2
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文TAO (The Art) of Unix Programming (and related systemic epiphanies)
This is a ruby-powered, ANSI colored, fortune-like program to espouse wisdom at
opportune moments, such as when you log in.
In every culture, I come across a chapter headed Wisdom. And then I know exactly what is going to follow: Vanity of vanities, all is vanity. - Wittgenstein
It's mostly a personal collection, but contributions are welcome.
Installation
- MacOS:
brew install taoup - Arch Linux:
yay -S taoup-git(replaceyaywith your favorite AUR helper) - Nix:
nix-env -iA nixos.taoup(ornix-env -iA nixpkgs.taoupwith nixpkgs on a non-Nix OS) - Other unix-like: Make sure you have
rubyandgeminstalled, rungem install ansithen./taoup.
Screenshots
Regular terminal (iTerm2).

Oldschool terminal

(cool-retro-term, or via homebrew: brew cask install cool-retro-term)
Getting wisdom at login
To display taoup output at login, use the taoup-fortune example script or try adding something similar in your .profile.
By default taoup assumes good taste and a black/dark terminal, for edge cases and lost causes use --whitetrash.
Special modes
There are four modes other than standard invocation:
--helpor--hshows brief command line help on invocation syntax--whitetrashconverts the otherwise attractive color scheme to be legible on light or white terminals--machinedrops any ANSI colors from the output (also respectsNO_COLORenvironment variable, see no-color.org)--fortuneconverts the wisdom to an assumed imitation of the fortune format. To make the resulting fortune format file available to the classicfortuneprogram (loses ANSI colors in output) you can runstrfileas follows:
taoup --fortune >taoup-fortunes
strfile taoup-fortunes taoup-fortunes.dat
fortune taoup-fortunes
Praise for taoup
- "I'm honored. :)" @jacquesm, HN user with ~200K karma, after being quoted in taoup
- "Taoup is in my zshrc startup, it's consistently fun/intelligent/thoughtful. Thanks for the continued maintenance 👍, cheers." @ronjouch
- We are now the top ranked fortune implementation on Github. Spread the word!
探索相关项目
加载中…