brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Utils::Shell#from_path
take a path and heuristically convert it to a shell name, return nil if there's no match
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/utils/shell.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Utils--Shell-from_path-for-pr
# Commit to gitgit add Library/Homebrew/utils/shell.rbgit commit -m "better docs for Utils::Shell#from_path"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Utils--Shell-from_path-for-pr
hub pull-request
# Celebrate!