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.
This commit is contained in:
Marc Schreiber 2023-09-25 13:39:43 +02:00 committed by GitHub
parent 6745d1cf93
commit 9ceac61989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`