forked from extern/nushell
update str find-replace
to str replace
(#5120)
This commit is contained in:
@ -7,7 +7,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 replace '[\*\+] ' '' | str trim }
|
||||
}
|
||||
|
||||
def "nu-complete git remotes" [] {
|
||||
|
Reference in New Issue
Block a user