Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created January 11, 2018 17:25
Embed
What would you like to do?
function giles_prompt {
tab-title $(this)
# display git user name for pairing via git pair
# "this" function returns git branch name
export PS1="\[\033[0;95m\]<\u (\$(git config user.name))> \[\033[0;96m\]\w\[\033[0m\]\[\033[0;32m\] \$(this)\[\033[0m\]\n\[\033[0;34m\] $(unicode_nonsense)\[\033[0m\] "
}
export PROMPT_COMMAND=giles_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment