7 ms·
I’ve been using something similar for years with Nushell. git branch | lines | where ($it !~ '^*') | each {|br| git branch -D ($br | str trim)} | s
by microflash 8mo ago
I’ve been using something similar for years with Nushell.
git branch
| lines
| where ($it !~ '^*')
| each {|br| git branch -D ($br | str trim)}
| str trim