I'm trying to improve the performance of my fish prompt, and since my prompt includes my current git branch, I'm wondering if there may be a way to make it faster.
Right now I'm using
git symbolic-ref HEAD | sed 's/refs\/heads\///', and when I first
cd into a git repo, it sometimes hangs for a little while. I'm wondering if there is a known faster method, or how I could find out. Whenever I run
time git symbolic-ref HEAD, it simply outputs