mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
While working on a new theme for git, I discovered that there was a missing flag for the git status, wouldn't ever tell us if there was any untracked files. -u simply added. Alt theme will come soon.
This commit is contained in:
parent
eda13234b3
commit
64e05d6ce0
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ function git_prompt_long_sha() {
|
|||
|
||||
# Get the status of the working tree
|
||||
git_prompt_status() {
|
||||
INDEX=$(git status --porcelain 2> /dev/null)
|
||||
INDEX=$(git status -u --porcelain 2> /dev/null)
|
||||
STATUS=""
|
||||
if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then
|
||||
STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue