Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using submodules looks like dirty working tree #25

Open
johnrichardrinehart opened this issue Jan 18, 2022 · 0 comments
Open

Using submodules looks like dirty working tree #25

johnrichardrinehart opened this issue Jan 18, 2022 · 0 comments

Comments

@johnrichardrinehart
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant