henrikruscon / hyper-statusline

Status Line Plugin for Hyper
MIT License
386 stars 79 forks source link

Feature Request: git dirty indicator for new but untracked files #76

Open ghost opened 6 years ago

ghost commented 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.

j-f1 commented 5 years ago

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.