Last active
April 7, 2020 22:47
-
-
Save gjyoung1974/1171962d45815333c6ef0f317c591c25 to your computer and use it in GitHub Desktop.
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/.cargo/bin:$HOME/bin:/usr/local/bin | |
source $HOME/.cargo/env | |
export GOPATH=$HOME/go | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '$HOME/Apps/google-cloud-sdk/path.zsh.inc' ]; then . '$HOME/Apps/google-cloud-sdk/path.zsh.inc'; fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f '$HOME/Apps/google-cloud-sdk/Apps/google-cloud-sdk/completion.zsh.inc' ]; then . '$HOME/Apps/google-cloud-sdk/Apps/google-cloud-sdk/completion.zsh.inc'; fi | |
# Add these to shell environment variables | |
# ~/.bash_profile or ~/.zshrc or similar | |
export GOOGLE_IDP_ID='some-idp-id' | |
export GOOGLE_SP_ID='some-sp-id' | |
export GOOGLE_USERNAME='[email protected]' | |
export AWS_DEFAULT_REGION='some-gcloud-region' | |
# hacky: to get AWS temp creds | |
alias aws-devel='unset AWS_PROFILE; aws-google-auth -p default --disable-u2f; export AWS_PROFILE=default; sed -i "s/aws-dev/default/g" ${HOME}/.aws/config; sed -i "s/aws-dev/default/g" ${HOME}/.aws/credentials' | |
# lazy typist | |
alias kc='~/bin/kubectl' | |
# clean up docker | |
alias dockerrm='docker rmi -f $(docker images -a -q)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment