This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Match Exec "[[ $(git config --get remote.origin.url)'' == 'git@github.com:user_or_company'* ]]" | |
| IdentityFile ~/.ssh/id_rsa_github_company | |
| IdentitiesOnly yes | |
| Host github.com | |
| IdentityFile ~/.ssh/id_rsa_github | |
| IdentitiesOnly yes | |
| ForwardAgent no | |
| ForwardX11 no | |
| ForwardX11Trusted no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host gitolite-as-alice | |
| HostName git.company.com | |
| User git | |
| IdentityFile /home/whoever/.ssh/id_rsa.alice | |
| IdentitiesOnly yes | |
| Host gitolite-as-bob | |
| HostName git.company.com | |
| User git | |
| IdentityFile /home/whoever/.ssh/id_dsa.bob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Multi domain | |
| Host gihub.com | |
| User git | |
| IdentityFile /home/whoever/.ssh/id_rsa_github | |
| IdentitiesOnly yes | |
| Host bitbucket.org | |
| User git | |
| IdentityFile /home/whoever/.ssh/id_dsa_bitbucket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export TERM="xterm-256color" # This sets up colors properly | |
| # workaround as per https://superuser.com/questions/1222867/zsh-completion-functions-broken | |
| FPATH=$HOME/.oh-my-zsh/plugins/git:$HOME/.oh-my-zsh/functions:$HOME/.oh-my-zsh/completions:/usr/share/zsh/site-functions:/usr/share/zsh/$ZSH_VERSION/functions | |
| export FPATH | |
| # set shell | |
| export SHELL=/usr/bin/zsh |