mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-28 05:21:57 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
3 lines
205 B
Nu
3 lines
205 B
Nu
# gently try to delete merged branches, excluding the checked out one
|
|
git branch --merged | lines | where $it !~ '\*' | str trim | where $it != 'master' and $it != 'main' | each { |it| git branch -d $it }
|