Strip '+ ' decoration in git branch list
'+' is the prefix for the current branch in some worktree
Closes
@@ -61,7 +61,7 @@ module completions {
#
# This is a simplified version of completions for git branches and git remotes
def "nu-complete git branches" [] {
- ^git branch | lines | each { |line| $line | str find-replace '\* ' '' | str trim }
+ ^git branch | lines | each { |line| $line | str find-replace '[\*\+] ' '' | str trim }
}
def "nu-complete git remotes" [] {
