Skip to content

Instantly share code, notes, and snippets.

@kevincharm
Last active March 25, 2018 13:03
Show Gist options
  • Save kevincharm/892066c9639abc19cf8badb9496502bc to your computer and use it in GitHub Desktop.
Save kevincharm/892066c9639abc19cf8badb9496502bc to your computer and use it in GitHub Desktop.
alias cb="git status | head -n 1 | cut -d' ' -f 3"
alias pull='git pull origin $(cb)'
alias push='git push origin $(cb)'
alias g='git-10x'
alias b='g branch'
function _update_ps1() {
PS1="$(~/go/bin/powerline-go -cwd-mode dironly -error $?)"
}
if [ "$TERM" != "linux" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment