Skip to content

Add nushell support#745

Closed
arnaudlimbourg wants to merge 3 commits intomax-sixty:mainfrom
arnaudlimbourg:ms/nushell
Closed

Add nushell support#745
arnaudlimbourg wants to merge 3 commits intomax-sixty:mainfrom
arnaudlimbourg:ms/nushell

Conversation

@arnaudlimbourg
Copy link
Contributor

Based of #535 with additional tests.

This is coded via claude as I don't know rust. I'm not sure about the quality of the work.

MattiasMTS and others added 3 commits January 11, 2026 22:21
- Add Nushell variant to Shell enum with config paths and detection
- Create nushell.nu template with --env flag for cd directive handling
- Add nushell to default shells in install/uninstall commands
- Update completion format to support nushell descriptions
- Add nushell installation to CI workflows
- Document nushell setup in shell integration docs
Nushell is not available in apt repositories. Use the official
GitHub Action for installing nushell on Linux and macOS.
Add integration tests for nushell shell support:

Template fixes (templates/nushell.nu):
- Use mktemp --tmpdir to avoid polluting the git repo
- Use $env.LAST_EXIT_CODE for real-time output streaming
- Fix path parsing (str substring 4..-2) to strip quotes
- Add multi-line directive support for --execute commands

Test infrastructure (tests/integration_tests/shell_wrapper.rs):
- Add nushell env syntax ($env.VAR) in build_shell_script()
- Add --no-config-file flag in exec_in_pty_interactive()
- Add #[case("nu")] to 11 parameterized tests

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@max-sixty
Copy link
Owner

I'm not sure about the quality of the work.

OK, very respectfully, and I appreciate your attempt — but then this isn't that useful.

You don't need to be an excellent rust coder at all (I'm not sure I'm an excellent rust coder...), but https://simonwillison.net/2025/Dec/18/code-proven-to-work/ summarizes it well

@max-sixty max-sixty closed this Jan 20, 2026
@arnaudlimbourg
Copy link
Contributor Author

@MattiasMTS no worries, I'll look at it further. In retrospect I pushed this too fast :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants