jD91mZM2 / powerline-rs

GitLab: https://gitlab.com/jD91mZM2/powerline-rs
MIT License
117 stars 22 forks source link

Using submodules looks like dirty working tree #25

Open johnrichardrinehart opened 2 years ago

johnrichardrinehart commented 2 years ago

Background

I have a .zshrc with the below, so I'm pretty sure I'm using this repository to generate the below prompt.

  pwr="$(powerline-rs --modules time,ssh,cwd,perms,git,gitstage,nix-shell,root,virtualenv --theme ~/.config/powerline-rs/themes/gruvbox.theme --shell zsh $?)"
  PS1=$(printf "%s\n$ " "$pwr")

As soon as I initialize a submodule (git submodule update --init --recursive) the prompt turns orange which typically indicates a dirty working tree.

Is this expected behavior?

image

The green boxes are around the spots where I cded into the submodule to show that it wasn't dirty.