jimeh / git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.
Creative Commons Zero v1.0 Universal
2.15k stars 340 forks source link

Add git_branch_space and git_dirty_space #61

Open jonathandandries opened 6 years ago

jonathandandries commented 6 years ago

Implementation of paulej's suggestion in issue #51: https://github.com/jimeh/git-aware-prompt/issues/51

jonathandandries commented 6 years ago

Changed the PR to implement conditional space with bash variable expansion instead of code in the module. Now the PR is just a change to the README.

paulej commented 6 years ago

Looks good! One thing to note is that the OS X example works perfectly fine on various Linus distributions, including Fedora.