xta / HalloweenBash

Custom Bash Profile Generator
http://xta.github.io/HalloweenBash/
333 stars 32 forks source link

Added "current git branch" to configuration options #2

Closed stephenchen13 closed 12 years ago

xta commented 12 years ago

Please update to show defined function(s) on a different line from the PS1 line.

Thanks

stephenchen13 commented 12 years ago

Updated code to use helper functions and show it on a different line.

JackNolan commented 12 years ago

+1

graywh commented 12 years ago

FYI, Git provides a shell function __git_ps1 (how to get it loaded will vary depending on how you installed git) that provides the current branch plus extra info about rebasing, merging, bisecting, working tree dirty, untracked files, etc.