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

Source | Google | Stack overflow

Edit

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

cd brew

open Library/Homebrew/utils/shell.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Utils--Shell-from_path-for-pr


# Commit to git

git add Library/Homebrew/utils/shell.rbgit commit -m "better docs for Utils::Shell.from_path"


# Open pull request

gem 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!