// Add to your shell configuration to improve your life! dam() { git checkout main && git branch --merged | egrep -v "(^\*|main)" | xargs git branch -d }