Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created January 11, 2018 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesbowkett/65b6f7c8567098b15657de4fd3af9ce8 to your computer and use it in GitHub Desktop.
Save gilesbowkett/65b6f7c8567098b15657de4fd3af9ce8 to your computer and use it in GitHub Desktop.
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