bb_new: Makes and opens a new script with the BitBar template.

Description Usage Arguments Examples

View source: R/bb_new.R

Description

Also runs the command to make the new script executable by BitBar.

Usage

1
bb_new(name = "myBitBaR", refresh.rate = "1h", dir = getwd())

Arguments

name

Name of your menu. Isn't used by BitBar so mostly irrelevant. No periods.

dir

Where to save the script. Defaults to your working directory.

refreshRate

How often would you like the menu to refresh. Format is 10s, 5m, 1h, etc. Defaults to 1h.

Examples

1
2
bb_new("MyMenu")
bb_new("MyMenu", "5s", "path/to/my/BitBar/directory")

jsowder/bitbaR documentation built on April 19, 2020, 6:10 p.m.