mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-03 07:37:47 +00:00
update scripts to support str replace
(#200)
This commit is contained in:
parent
577ad93638
commit
e6d8d2704e
10 changed files with 44 additions and 44 deletions
|
@ -1,5 +1,5 @@
|
|||
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" [] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue