Skip to content

[FEATURE]: Add config to change shell for bash tool #4702

@jdanbrown

Description

@jdanbrown

Feature hasn't been suggested before.

Describe the enhancement you want to request

I see that I can configure the shell used by the bash tool with the SHELL env var, But it'd be helpful to be able to configure it via the config file as well.

In my case, I want to change the shell to a docker run on a readonly fs so I can safely set "bash": "allow" instead of having to approve a bunch of shell commands all the time, and this wouldn't make any sense as my global $SHELL since it's something I only want opencode to use.

I can of course make shell aliases and stuff, but it seems like opencode.jsonc is the most natural place to keep it (and go looking for it later).

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions