From 9ceac6198964c3e0ad4f2084b60329902fe089c2 Mon Sep 17 00:00:00 2001 From: Marc Schreiber Date: Mon, 25 Sep 2023 13:39:43 +0200 Subject: [PATCH] Fix git-completions.nu (#620) The parsing of local git branches accidentally escaped an asterisks because it had been used as an regular expression in the past. --- custom-completions/git/git-completions.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index 170e0053..daf96e35 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -24,7 +24,7 @@ def "nu-complete git commits current branch" [] { # Yield local branches like `main`, `feature/typo_fix` def "nu-complete git local branches" [] { - ^git branch | lines | each { |line| $line | str replace '\* ' "" | str trim } + ^git branch | lines | each { |line| $line | str replace '* ' "" | str trim } } # Yield remote branches like `origin/main`, `upstream/feature-a`