Open ghost opened 6 years ago
In my zsh configuration I am currently using the following function to track whether there are any modified files and new untracked files:
gitDirty() { [[ $(git status 2> /dev/null | grep -o '\w\+' | tail -n1) != ("clean"|"") ]] && echo "*" }
The statusline only shows indicators for changes in already tracked files and not for new untracked files.
This included in #78, which I’ve published to @j-f/hyper-statusline. You can swap hyper-statusline with @j-f/hyper-statusline in your config to switch.
@j-f/hyper-statusline
hyper-statusline
In my zsh configuration I am currently using the following function to track whether there are any modified files and new untracked files:
The statusline only shows indicators for changes in already tracked files and not for new untracked files.