colo for macOS

colo opens a new terminal tab with the default profile, then sets its
foreground, background and cursor colours (and opacity) to a scheme picked
at random from ~/.colorc.  It uses iTerm2 if that's installed, otherwise
Terminal.app.

Install

  copy 'colo' somewhere in your PATH (/usr/local/bin perhaps), and copy
  sample.colorc to ~/.colorc and edit it to your liking.  Without a
  ~/.colorc, colo uses the sample.colorc next to it if there is one.

  colo.app does the same as running colo, so you can use it from the Dock
  or Spotlight.  Drag it to /Applications.  It has its own copy of colo
  built in and reads the same ~/.colorc.

Usage

  colo           new tab
  colo -w        new window
  colo -c        recolour the current tab (e.g. from your .zshrc)
  colo -a terminal | iterm
                 pick the app instead of preferring iTerm2
  colo -f file   use another colour file (or set $COLORC)
  colo -p        just print the scheme it would use

~/.colorc

  every line not starting with # is

    foreground,background[,cursor[,opacity]]

  colours are X11 names (MidnightBlue, blue4, gray17, ...; case and
  spaces don't matter) or #rrggbb.  cursor defaults to the foreground
  colour, opacity is 0-100 and defaults to 100.

Permissions

  The first run asks to let your terminal (or colo.app) control iTerm or
  Terminal.  Terminal has no scripting command for a new tab, so colo
  presses Cmd-T, which needs Accessibility access (System Settings >
  Privacy & Security > Accessibility); without it you get a new window.

enjoy!
