powerline-rs icon indicating copy to clipboard operation
powerline-rs copied to clipboard

Using submodules looks like dirty working tree

Open johnrichardrinehart opened this issue 2 years ago • 0 comments

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.

johnrichardrinehart avatar Jan 18 '22 14:01 johnrichardrinehart