/AnonScripts

Useful Unix Scripts for Anons

Primary LanguageShellMIT LicenseMIT

AnonScripts

Useful Unix Scripts for Anons

Readme

Read the comments in the scripts for usage

Contents

  1. .ssh/config

  2. .zshrc

  3. GitOwner script


  1. create another ssh rsa. tips from github

  2. 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"

delete all merged git branches except master|develop|alpha

git branch --merged | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d

delete all git branches except master|develop|alpha

git branch | egrep -v "(^\*|master|develop|alpha)" | xargs git branch -d