mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue