mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
add condition for untracked files (vcs_info doesn't support)
This commit is contained in:
parent
0639e975a1
commit
d61e851298
1 changed files with 1 additions and 1 deletions
2
themes/steeef.zsh-theme
Normal file → Executable file
2
themes/steeef.zsh-theme
Normal file → Executable file
|
|
@ -56,7 +56,7 @@ function steeef_chpwd {
|
||||||
add-zsh-hook chpwd steeef_chpwd
|
add-zsh-hook chpwd steeef_chpwd
|
||||||
|
|
||||||
function steeef_precmd {
|
function steeef_precmd {
|
||||||
if [[ -n "$PR_GIT_UPDATE" ]] ; then
|
if [[ -n "$PR_GIT_UPDATE" || -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] ; then
|
||||||
vcs_info 'prompt'
|
vcs_info 'prompt'
|
||||||
PR_GIT_UPDATE=
|
PR_GIT_UPDATE=
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue