-
Notifications
You must be signed in to change notification settings - Fork 128
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
Feature request: nushell #704
Comments
You are the first person to mention nushell. If you are interested in having Lmod be supported by nushell, please submit a pull request to support this shell. |
Sure, how should I get started? |
Here are my suggestions:
|
I'm closing this issue. If you get a chance to work on this, you can re-open this issue. |
I'm still interested; please re-open. Just haven't had a chance to work much on this yet. |
I don't think it will be that difficult. Basically whenever bash has export CMD="..." the nushell version would be $env.CMD = "..." The tricky part would be things like std path add "/path/to/bin" And string interpolation for e.g., $"($env.MY_DIR)/path" |
Lmod does not add to path and path-like variables. Instead it sets the variable to all values. I did not think about nushell would have a different syntax from Bash. You will have to create a lua file called nushell.lua which works like Bash.lua or Rc.lua. You will have to modify BaseShell.lua. All of these files are in the shells directory. The way that Lmod works is that it generates text which is then evaluated by the shell. You should write a text file that contains some nushell commands and make sure that you can evaluate commands. In Bash/Zsh this looks like
where the ... is some like |
Just wondering if anybody has started a nushell integration for Lmod?
See https://github.com/nushell/nushell and https://www.nushell.sh/ for info.
Perhaps one way to do it is through the overlay system: https://www.nushell.sh/book/overlays.html. But maybe it is enough to just write some aliases so nushell is interfaced as if it were bash.
The text was updated successfully, but these errors were encountered: