commands 182 B

1234567
  1. #!/bin/bash
  2. # returns the active git branch - this is used in rewrite_prompt()
  3. git_branch()
  4. {
  5. git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(branch: \1)/'
  6. }