mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 13:55:28 +03:00
port git_gone to 0.60 era syntax (#170)
TIL `each { |it| echo $it }` :)
This commit is contained in:
parent
77b74c02ef
commit
1edddaf160
@ -1,3 +1,2 @@
|
||||
# gently try to delete merged branches, excluding the checked out one
|
||||
# This is an alternative to git_branchcleanup.nu
|
||||
git branch --merged | lines | where $it !~ '*' | str trim | where $it != 'master' && $it != 'main' | each { git branch -d $it }
|
||||
git branch --merged | lines | where $it !~ '*' | str trim | where $it != 'master' && $it != 'main' | each { |it| git branch -d $it }
|
Loading…
Reference in New Issue
Block a user