Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.33 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.33 KB

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

just run the following to update your local .zshrc

cp zsh/.zshrc ~/.zshrc
source ~/.zshrc

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

Install Rectangle

https://github.com/rxhanson/Rectangle