Skip to content

Commit 2ad0ddd

Browse files
committed
🐛 fix additional + in git local branches
1 parent fd686c0 commit 2ad0ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-completions/git/git-completions.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def "nu-complete git commits current branch" [] {
2424

2525
# Yield local branches like `main`, `feature/typo_fix`
2626
def "nu-complete git local branches" [] {
27-
^git branch --no-color | lines | each { |line| $line | str replace '* ' "" | str trim }
27+
^git branch --no-color | lines | each { |line| $line | str replace '* ' "" | str replace '+ ' "" | str trim }
2828
}
2929

3030
# Yield remote branches like `origin/main`, `upstream/feature-a`

0 commit comments

Comments
 (0)