Type git recent
to see your latest local git branches
git recent
Optionally, add -n<int>
to see the most recent <n>
branches
git recent -n5
If you're a Windows user, you need to use Git Bash or similar shell in order to effectively use this utility.
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/
).
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
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
.
git clone /~https://github.com/paulirish/git-recent.git $ZSH_CUSTOM/plugins/git-recent
- Add
git-recent
to your plugin list - edit~/.zshrc
and changeplugins=(...)
toplugins=(... git-recent)
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 "paulirish/git-recent", as:plugin
git open
- Open the repo website in your browserdiff-so-fancy
- Making the output ofgit diff
so fancy
Copyright Paul Irish. Licensed under MIT.
- 2016-05-16 - added to paulirish/dotfiles
- 2016-08-05 - released in standalone repo and published to npm