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.16k stars 340 forks source link

Adds a way to shorten branch names, trimming the center #56

Open ghost opened 6 years ago

ghost commented 6 years ago

Sometimes branch names get very long. Adds a hostname, username and, for python developers, vritualenv names and you can easly get a multiline shell prompt. This helps keep branch name within a size pre-defined.