From 92f20ff2827b1afb3d06011bc0609a0212c53993 Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Sun, 16 Jun 2024 22:30:53 +0000 Subject: [PATCH] Rmove usage of deprecated `str contains --not` (#880) Related: https://github.com/nushell/nushell/issues/13163 --- modules/prompt/panache-git.nu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/prompt/panache-git.nu b/modules/prompt/panache-git.nu index 0f1ef47..3b660b0 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 })