3 ms·
I found that all I really wanted to show was the current branch, which I do with https://gist.github.com/ivan/79de5e87210e8cf21e305bb4c30c4360#file-zshrc-L217-L
by ivank 5y ago
I found that all I really wanted to show was the current branch, which I do with https://gist.github.com/ivan/79de5e87210e8cf21e305bb4c30c4360#file-zshrc-L217-L239 https://gist.github.com/ivan/79de5e87210e8cf21e305bb4c30c436...
- tekknik 5y agoYou can do this in fish with a direct call to git branch, and it’s not slow and doesn’t require catting files: set -l git_branch (git branch 2>/dev/null | sed -n '/\* /s///p') if test -n "$git_branch" echo -n -s (set_color yellow) "<$git_branch>" (set_color normal) " " end