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
# ----------------------
# Git Aliases
# ----------------------
alias gaa='git add .'
alias gcm='git commit'
# perl5 if you need it
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"
# ---------
# browser
export BROWSER="Brave Browser"
git branch --merged | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d
git branch | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d