Skip to content

Instantly share code, notes, and snippets.

@nicksergeant
Created July 28, 2013 23:46
Show Gist options
  • Select an option

  • Save nicksergeant/6101112 to your computer and use it in GitHub Desktop.

Select an option

Save nicksergeant/6101112 to your computer and use it in GitHub Desktop.
function git_prompt
set -l CUR (git currentbranch ^/dev/null)
if test $CUR
printf ' \033[0;37mon '
printf '\033[0;35m%s' $CUR
printf ' \033[0;32m'
git_prompt_status
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment