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

5 lines
125 B
Bash
Executable File

#!/bin/bash
git rev-parse HEAD >&/dev/null || exit 1
# shellcheck disable=2063
git branch --no-color | grep '^*' | cut -c 3-