Read the comments in the scripts for usage
-
create another ssh rsa. tips from github
-
edit your ssh config to something like below, keeping a normal github config & and a github-anon config
$ nano ~/.ssh/config
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/your_normal_rsa
IdentitiesOnly yes
Host github-anon
HostName github.com
User git
IdentityFile ~/.ssh/anon_rsa
IdentitiesOnly yes
just run the following to update your local .zshrc
cp zsh/.zshrc ~/.zshrc
source ~/.zshrc
git branch --merged | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d
git branch | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d