diff --git a/modules/prompt/panache-git.nu b/modules/prompt/panache-git.nu index 0f1ef47c..3b660b03 100644 --- a/modules/prompt/panache-git.nu +++ b/modules/prompt/panache-git.nu @@ -55,7 +55,8 @@ export def repo-structured [] { $status | where ($it | str starts-with '# branch.head') | first - | str contains --not '(detached)' + | str contains '(detached)' + | not $in } else { false })