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
Trap only specific commands so as to not slow down the command prompt. #10
Closed
cryptographrix closed 11 years ago
This traps on ^cd, ^git, and ^PROMPT_COMMAND. Feel free to add more, but this is a start.