An open API service indexing awesome lists of open source software.

https://github.com/rvirani1/with_anybar

A simple utility that updates anybar colors based on the status of a bash command
https://github.com/rvirani1/with_anybar

anybar

Last synced: 3 months ago
JSON representation

A simple utility that updates anybar colors based on the status of a bash command

Awesome Lists containing this project

README

        

[![Gem Version](https://badge.fury.io/rb/with_anybar.svg)](http://badge.fury.io/rb/with_anybar)

# with_anybar

With_anybar is a simple gem that uses [AnyBar](https://github.com/tonsky/AnyBar) as a notification system for a long running command line command. For example, you may need to execute a long build process or script that sometimes may error. Rather than manually checking the status of that command, you can see whether it's complete via AnyBar!

## Installation

Install AnyBar

$ brew cask install anybar

Install the with_anybar gem

$ gem install with_anybar

## Usage

Call any command on your terminal using with_anybar

$ with_anybar say "Your AnyBar should turn orange before turning green right now"

While the command is running, your AnyBar will turn **ORANGE**

If the command succeeds, your AnyBar will turn **GREEN**

If the command fails, your AnyBar will turn **RED**

If you are running multiple instances of AnyBar or not running it on the standard port (1738), you can set the
`ANYBAR_PORT` environment variable on run.

$ ANYBAR_PORT=1739 with_anybar say "Your AnyBar should turn orange before turning green right now"