markstory/dotfiles — comment on commit ad6721a101bb74e08f42cf9beef47debe9313fc9
File: section/aliases.sh line 21
By renansaddam:

When using ```git flow``` or having prefixed branch names (eg. feature/doSomething) this won't work properly.

Instead, I'm using:

```bash
head=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
```