shoestrap/assets/default/bin/git-branch-name

5 lines
125 B
Plaintext
Raw Normal View History

2013-08-08 03:23:13 +00:00
#!/bin/bash
git rev-parse HEAD >&/dev/null || exit 1
# shellcheck disable=2063
2013-08-08 03:23:13 +00:00
git branch --no-color | grep '^*' | cut -c 3-