brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Cleaner#prune

Removes any empty directories in the formula's prefix subtree
Keeps any empty directions projected by skip_clean
Removes any unresolved symlinks

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/cleaner.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Cleaner-prune-for-pr


# Commit to git

git add Library/Homebrew/cleaner.rbgit commit -m "better docs for Cleaner#prune"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Cleaner-prune-for-pr

hub pull-request


# Celebrate!