Skip to content

Instantly share code, notes, and snippets.

@wrgoldstein
Created March 17, 2022 17:11
Show Gist options
  • Select an option

  • Save wrgoldstein/190e4f454b1ba5d081db5cdb65f8f100 to your computer and use it in GitHub Desktop.

Select an option

Save wrgoldstein/190e4f454b1ba5d081db5cdb65f8f100 to your computer and use it in GitHub Desktop.
alias kx=kubectx
alias kn=kubens
alias k=kubectl
alias u=ultralist
alias ez="code ~/.zshrc"
alias z="source ~/.zshrc"
export EDITOR="code --wait"
eval "$(pyenv init --path)"
3.9(){
P=$PROMPT
pyenv global 3.9.1
source ~/3.9/bin/activate
export PROMPT="(3.9) ${P}"
}
branch-name(){
git rev-parse --abbrev-ref HEAD
}
p(){
git push --set-upstream origin $(branch-name)
}
c() {
# open the current branch on github and compare against master
open "$(git remote -v | grep fetch | awk '{print $2}' | sed 's/git@/https:\/\//' | sed 's/com:/com\//' | sed 's/\.git$/\/compare/')/$(branch-name)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment