diff options
| author | Mike McQuaid | 2016-09-04 21:23:33 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-04 21:23:33 +0100 |
| commit | dfcbefff73e90eda5801d9892303e10fc31831b6 (patch) | |
| tree | e20a7c5a5a28458d7729155c2b537ac63bc0aadd /Library/Homebrew/compat | |
| parent | 8e98a0a198551f19696b3c09469fcbb1e1223f73 (diff) | |
| parent | dcc3377aa30b34dfcced0df77696674f91a5a9f3 (diff) | |
| download | brew-dfcbefff73e90eda5801d9892303e10fc31831b6.tar.bz2 | |
Merge pull request #201 from gregory-nisbet/feature-env-shells
--env: support more shells, allow explicit shell selection
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/utils.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/utils.rb b/Library/Homebrew/compat/utils.rb new file mode 100644 index 000000000..7de5e85c3 --- /dev/null +++ b/Library/Homebrew/compat/utils.rb @@ -0,0 +1,10 @@ +# return the shell profile file based on users' preference shell +def shell_profile + opoo "shell_profile has been deprecated in favor of Utils::Shell.profile" + case ENV["SHELL"] + when %r{/(ba)?sh} then "~/.bash_profile" + when %r{/zsh} then "~/.zshrc" + when %r{/ksh} then "~/.kshrc" + else "~/.bash_profile" + end +end |
