Author: "Type git recent to see your latest local git branches"
Go to file
Rob Winch b9c59a5674 Add zsh plugin
closes #18
2020-07-07 12:50:08 -05:00
git-recent Handle new git behavior requiring count parameter (#19) 2019-06-20 20:19:17 -07:00
git-recent.plugin.zsh Add zsh plugin 2020-07-07 12:50:08 -05:00
LICENSE Added MIT LICENSE (#14) 2017-04-20 02:26:59 -07:00
package.json v1.1.1 2019-06-20 20:20:30 -07:00
readme.md Add zsh plugin 2020-07-07 12:50:08 -05:00

git-recent

Type git recent to see your latest local git branches

Usage

git recent

Optionally, add -n<int> to see the most recent <n> branches

git recent -n5

git-recent screenshot

If you're a Windows user, you need to use Git Bash or similar shell in order to effectively use this utility.

Installation

Basic install

You can add the git-recent location to your path (e.g. add the directory to your PATH environment or copy git-recent into an existing included path like /usr/local/bin or ~/bin/).

Install via NPM:

You can use also npm to install the global binary:

npm install --global git-recent

On Mac, you can install with homebrew:

brew install git-recent

ZSH

Antigen

Add antigen bundle paulirish/git-recent to your .zshrc with your other bundle commands.

Antigen will handle cloning the plugin for you automatically the next time you start zsh, and periodically checking for updates to the git repository. You can also add the plugin to a running zsh with antigen bundle paulirish/git-recent for testing before adding it to your .zshrc.

Oh-My-Zsh

  1. git clone https://github.com/paulirish/git-recent.git $ZSH_CUSTOM/plugins/git-recent
  2. Add git-recent to your plugin list - edit ~/.zshrc and change plugins=(...) to plugins=(... git-recent)

Zgen

Add zgen load paulirish/git-recent to your .zshrc file in the same function you're doing your other zgen load calls in. ZGen will take care of cloning the repository the next time you run zgen save, and will also periodically check for updates to the git repository.

zplug

zplug "paulirish/git-recent", as:plugin

If you like this you may also be interested in...

  • git open - Open the repo website in your browser
  • diff-so-fancy - Making the output of git diff so fancy

License

Copyright Paul Irish. Licensed under MIT.

Changelog

  • 2016-05-16 - added to paulirish/dotfiles
  • 2016-08-05 - released in standalone repo and published to npm