Git Product home page Git Product logo

taoup's Introduction

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

  • Arch Linux: yay -S taoup-git (replace yay with your favorite AUR helper)
  • Nix: nix-env -iA nixos.taoup (or nix-env -iA nixpkgs.taoup with nixpkgs on a non-Nix OS)
  • Other unix-like: Make sure you have ruby and gem installed, run gem install ansi then ./taoup.

Screenshots

Regular terminal (iTerm2).

screenshot

Oldschool terminal

screenshot

(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:

  • --help or --h shows brief command line help on invocation syntax
  • --whitetrash converts the otherwise attractive color scheme to be legible on light or white terminals
  • --machine drops any ANSI colors from the output (also respects NO_COLOR environment variable, see no-color.org)
  • --fortune converts the wisdom to an assumed imitation of the fortune format. To make the resulting fortune format file available to the classic fortune program (loses ANSI colors in output) you can run strfile as 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!

taoup's People

Contributors

coolandsmartrr avatar globalcitizen avatar mkfmnn avatar nullp0tr avatar ronjouch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.