I did something similar to a lot of other users but wanted to share it as an alternative since I didn't see anyone else post this.
alias gpu='git push --set-upstream origin $(git branch --show-current)'
alias gpu='git push --set-upstream origin $(git branch --show-current)' (oh-my-zsh already has a gpu alias so edited that in .oh-my-zsh/plugins/git/git.plugin.zsh)