Zsh plugin for easy navigation between git branches associated with JIRA issues
This is written as a zsh plugin, it also works with bash if you follow the manual installation instructions.
Clone zsh-jira-checkout-branch
into your custom plugins repo
git clone https://github.com/los-romka/zsh-jira-checkout-branch ~/.oh-my-zsh/custom/plugins/zsh-jira-checkout-branch
Then load as a plugin in your .zshrc
plugins+=(zsh-jira-checkout-branch)
Keep in mind that plugins need to be added before oh-my-zsh.sh
is sourced.
Then define required JIRA variables
Clone this repository somewhere (~/.zsh-jira-checkout-branch
for example)
git clone https://github.com/los-romka/zsh-jira-checkout-branch.git ~/.zsh-jira-checkout-branch
Then source it in your .zshrc
(or .bashrc
)
source ~/.zsh-jira-checkout-branch/zsh-jira-checkout-branch.plugin.zsh
Then define required JIRA variables
Put $JIRA_USER:$JIRA_PASS
into ~/.jira-credentials
echo "user:pass" > ~/.jira-credentials
Define JIRA_API_URL
in your .zshrc
(or .bashrc
)
echo -e "JIRA_API_URL=https://jira.mysite.com/rest/api/2/" >> ~/.zshrc
Just type jco
in your Git-repository to checkout between branches (fzf
included)
You can specify a custom JIRA_CREDENTIALS_PATH
in your .zshrc
(or .bashrc
)
echo -e "JIRA_CREDENTIALS_PATH=~/.jira-credentials" >> ~/.zshrc
JIRA-server
- The #1 software development tool used by agile teamsgit
- U know itfzf
- General-purpose command-line fuzzy finder.curl
- Command line tool and library for transferring data with URLsjq
- Command-line JSON processorMIT © Roman Los