Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

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

Open
ghost opened this issue Apr 27, 2018 · 1 comment
Open

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

ghost opened this issue Apr 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 27, 2018

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
Copy link

j-f1 commented Sep 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant