Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 1.38 KB

README.md

File metadata and controls

76 lines (56 loc) · 1.38 KB

up

up is a command-line utility to upgrade packages managers. If you’re using multiple managers, your workflow is something like this:

# upgrade homebrew
brew update && brew upgrade
# upgrade gems
gem update
# update opam
opam update && opam upgrade
# update npm
npm -g update
# etc

With up, it can be reduced to:

up brew gem opam npm

Installation

mkdir -p ~/bin
curl -s https://raw.github.com/bfontaine/up/master/bin/up > ~/bin/up
chmod u+x ~/bin/up

If ~/bin is not in your PATH, you have to add it:

echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc

A Bash autocomplete script is available.

Using homebrew

brew tap bfontaine/utils
brew install up

Usage

up takes either a set of aliases or one of the following options:

up --help                  # show help and exit
up --version               # show version and exit
up --add <alias> <command> # add a new command
up --rm <alias>            # remove a command
up --list                  # list available commands
up --all                   # execute all commands

Example

# add a command
up --add rvmall 'rvm all do gem update'

# execute a command
up rvmall

# execute multiple commands sequentially
up npm rvmall apt-get

# remove a command
up --rm rvmall