A shell script generates the branch name which complies opengov's policy
- Clone this repo
- In the cloned folder, add execution permission for users.
chmod u+x bng.sh
- Add the shell file to PATH (Edit in .zshrc or .bash_profile if you're not using zsh)
export PATH=${YOUR_CLONED_FOLDER}/branch-name-generator:$PATH
- Alias it so it's easier to run the shell script. (Same file as step 4. I use
gb
here which stands for git branch)
alias gb='bng.sh'
- Source it
source ~/.zshrc
#(or .bash_profile if you're not using zsh)