powerline-rs
powerline-rs copied to clipboard
Using submodules looks like dirty working tree
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?
The green boxes are around the spots where I cd
ed into the submodule to show that it wasn't dirty.