Skip to content

Allow shell configuration#260

Closed
Odonno wants to merge 1 commit into
1jehuang:masterfrom
Odonno:feat/shell-config
Closed

Allow shell configuration#260
Odonno wants to merge 1 commit into
1jehuang:masterfrom
Odonno:feat/shell-config

Conversation

@Odonno

@Odonno Odonno commented May 24, 2026

Copy link
Copy Markdown

Closes #257

quangdang46 added a commit to quangdang46/jcode that referenced this pull request May 24, 2026
…) (#303)

Port of upstream PR 1jehuang#260 (open). Lets users on nu /
zsh / fish / pwsh have agent-spawned bash tool calls run through
their preferred shell instead of the platform default.

Config:
  [terminal]
  shell = 'nu'        # or 'zsh', 'fish', 'pwsh', '/bin/dash'

Env override:
  JCODE_SHELL=zsh

Behavior:
- shell unset → platform default (bash on Unix, cmd.exe on Windows)
  preserves existing behavior
- shell set → spawn the named binary with '-c <command>'
- shell name resolved via PATH; absolute paths supported

Caveats (intentionally same as upstream):
- Most shells accept '-c'; nu, zsh, bash, sh, fish (in some modes),
  pwsh (with '-Command' which we approximate via -c)
- PowerShell users wanting full pwsh syntax should still wrap
  commands in 'pwsh -Command "..."' inside the agent prompt.

Refs upstream PR 1jehuang#260.
@1jehuang 1jehuang added the triage:declined PR triage: out of scope / not planned label Jun 12, 2026
@1jehuang

Copy link
Copy Markdown
Owner

Thanks for the effort, but this is out of scope for jcode right now and the repo no longer accepts external PRs. Closing.

@1jehuang 1jehuang closed this Jun 12, 2026
@Odonno Odonno deleted the feat/shell-config branch June 12, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage:declined PR triage: out of scope / not planned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow shell configuration

2 participants