claude-code - 💡(How to fix) Fix Add `nu` (nushell) as a supported value for `defaultShell`

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Current workarounds are clunky:

  • !nu -c "apilogs" for every invocation
  • Convert every nu alias into a standalone executable script
RAW_BUFFERClick to expand / collapse

Feature request

defaultShell in settings.json currently accepts only "bash" and "powershell". Please add "nu" (or a more general "use $SHELL" option) so users whose login shell is nushell can run !-prefixed input-box commands in their actual shell.

Why

Nushell is increasingly common as a daily-driver shell on macOS/Linux. When my $SHELL=/opt/homebrew/bin/nu and I type !apilogs (where apilogs is a nu alias/custom command), Claude Code routes it through bash/zsh, which doesn't know about my nu aliases — so the command fails with command not found.

Current workarounds are clunky:

  • !nu -c "apilogs" for every invocation
  • Convert every nu alias into a standalone executable script

Proposed behavior

"defaultShell": "nu" would invoke commands via nu -c "<command>" (or equivalent), letting users keep their existing nu aliases and custom commands.

Notes

  • This only needs to affect the ! input-box path. The Bash tool (used by the model) can keep requiring POSIX semantics — hooks, jq pipelines, etc. rely on it.
  • Similarly, hook shell field could optionally accept "nu", but that's a separate, lower-priority ask.

Environment

  • Claude Code on macOS (Darwin 25.4.0)
  • Shell: /opt/homebrew/bin/nu

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING