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