New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support of xonsh shell to shellenv on Linux #10757
Conversation
Sorry, passing on this, xonsh is far too niche for us to justify merging this. |
Hi @MikeMcQuaid ! Thank you for the response. I'm just wondering how did you determine the xonsh is "niche"? There are a few thought why it's not :)
Also I see just twenty simple lines in this PR that completely have no affect on other code. |
https://formulae.brew.sh/analytics/install-on-request/30d/ xonsh has 2 orders of magnitude less usage than these other shells. |
Thanks for the awesome link @jonchang! Couple of thoughts:
Most of xonsh installs are came from PyPi/Conda packages along with Python way (that is in top 10 in Brew). The comparing of the count of installations of binary shells with xonsh is mostly has the bias in the data. For example the Xonsh shell has around 20,000 installs in conda just for a 1.5 month: This not looks like xonsh is "niche". The fish shell has comparing number of installs (13,000) in brew for a month (and after 15 years of history). And because I see just twenty simple lines in this PR that completely have no affect on other code I'm suggesting to pass it to the world, The Open Sourced World ) |
tcsh is supported because it used to be the default shell for new users in macOS, is still distributed in the default install, and (for users who have migrated their user profile across all those versions) is still set as the user's shell. None of those are true for xonsh. |
@jonchang ah, got it about tcsh, thanks! |
I have a short check the PyPi stats and try to make overview by data.
As result the statement about xonsh is "niche" has no strong support. @MikeMcQuaid please take a look on this simple PR again. |
We'll agree to disagree.
I did, I haven't changed my mind. |
For the xonsh users: xontrib-linuxbrew - Add Homebrew's shell environment to xonsh shell. |
Great idea. If this gets more traction we can consider including it in Homebrew proper. Thanks @anki-code! |
No, don't see any tests for shellenv, so don't know how write such a test. But I did test it in a xonsh shell
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?No, but I also have a few dozen failed tests within WSL on a fresh master. Also, haven't found any failures related to shellenv
Currently on Linux the
shellenv
command only check the process list for the fish/t/csh shells and otherwise prints out generic bash instructionsI've updated
shellenv
to also check for the xonsh shell and print out correct xonsh instructions that can be evaluated to update a xonsh environment and make Linuxbrew usable in xonshI've also updated the installation instructions with the relevant xonsh commands