mirror of
https://github.com/nushell/nushell.git
synced 2025-02-02 03:30:16 +01:00
Strip '+ ' decoration in git branch list (#5016)
- '+' is the prefix for the current branch in some worktree Closes #5014
This commit is contained in:
parent
0afa18ac4a
commit
a2872b4ccc
@ -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" [] {
|
||||
|
Loading…
Reference in New Issue
Block a user