logoalt Hacker News

microflashtoday at 5:26 PM0 repliesview on HN

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