Created
March 17, 2022 17:11
-
-
Save wrgoldstein/190e4f454b1ba5d081db5cdb65f8f100 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
| 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