Home

Awesome

browse-commit

browse-commit is an oh-my-zsh plugin that lets you open any commit in your browser from the command line.

Setup

oh-my-zsh

Example

$> git clone git://github.com/adolfoabegg/browse-commit.git ~/.oh-my-zsh/custom/plugins/browse-commit
$> vim ~/.zshrc
   // add browse-commit to the list of enabled plugins
   plugins=(git osx browse-commit)
$> cd ~/code/browse-commit
$> git config --add browse-commit.url https://github.com/adolfoabegg/browse-commit/commit
$> brc 9893058ccd2c5384748a10e491181a0d9955b80d

That will open https://github.com/adolfoabegg/browse-commit/commit/9893058ccd2c5384748a10e491181a0d9955b80d in my default browser.

Antigen

If you're using Antigen, just add antigen bundle adolfoabegg/browse-commit to your .zshrc along with your other plugins.

Zgen

If you're using zgen, add zgen load adolfoabegg/browse-commit to your .zshrc along with your other plugins.

Usage

Compatibility

browse-commit uses open, so it currently only works on OS X.

Author

Adolfo Abegg