bitbucket-git-helpers
Some git helper scripts for dealing with repos on bitbucket.
Contents
- git-bb-open - Opens the current directory (or a path if specified) on bitbucket in the current branch.
Installing
Antigen
If you're using Antigen:
- Add
antigen bundle unixorn/bitbucket-git-helpersto your.zshrcwhere you've listed your other plugins. - Close and reopen your Terminal/iTerm window to refresh context and use the plugin. Alternatively, you can run
antigen bundle unixorn/bitbucket-git-helpersin a running shell to have antigen load the new plugin.
oh-my-zsh
If you're using oh-my-zsh:
-
In the command line, change to oh-my-zsh's custom plugin directory :
cd ~/.oh-my-zsh/custom/plugins/ -
Clone the repository into a new
bitbucket-git-helpersdirectory:git clone https://github.com/unixorn/bitbucket-git-helpers.git bitbucket-git-helpers -
Edit your
~/.zshrcand addbitbucket-git-helpers– same as clone directory – to the list of plugins to enable:plugins=( ... bitbucket-git-helpers ) -
Then, restart your terminal application to refresh context and use the plugin. Alternatively, you can source your current shell configuration:
source ~/.zshrc
zgen
If you're using zgen:
- Add
zgen load unixorn/bitbucket-git-helpersto your.zshrcalong with your otherzgen loadcommands. rm ${ZGEN_INIT}/init.zsh && zgen save
Manual Installation
Nothing here actually requires you to use ZSH or zgen, that's just a convenient distribution method for anyone using a ZSH framework.
If you aren't using any zsh frameworks, or if you're a bash user, do the following steps:
- git clone this repository
- Add
cloneDirectory/binto your$PATH.