[PR #23] [MERGED] feat: Make shell configurable via config file #9499

Closed
opened 2026-02-16 18:13:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/23
Author: @ezynda3
Created: 5/16/2025
Status: Merged
Merged: 5/16/2025
Merged by: @adamdotdevin

Base: devHead: make-shell-configurable


📝 Commits (2)

  • 97f1fca feat: Make shell configurable via config file
  • 9847cad Merge branch 'sst:dev' into make-shell-configurable

📊 Changes

3 files changed (+60 additions, -4 deletions)

View changed files

📝 README.md (+33 -0)
📝 internal/config/config.go (+7 -0)
📝 internal/llm/tools/shell/shell.go (+20 -4)

📄 Description

Summary

  • Add ability to configure the shell used by the bash tool via the config file
  • Default to $SHELL environment variable if not specified in config
  • Fall back to /bin/bash if neither config nor environment variable is set
  • Allow customizing shell arguments

This is needed because I use nushell as my default shell on NixOS and need to specify a very specific path for bash.

Test plan

  • Verify that shell configuration works with different shells
  • Verify that shell arguments can be customized
  • Verify backward compatibility with existing behavior

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/23 **Author:** [@ezynda3](https://github.com/ezynda3) **Created:** 5/16/2025 **Status:** ✅ Merged **Merged:** 5/16/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `make-shell-configurable` --- ### 📝 Commits (2) - [`97f1fca`](https://github.com/anomalyco/opencode/commit/97f1fcac49738b62973c5c612e53d3bd4071e99d) feat: Make shell configurable via config file - [`9847cad`](https://github.com/anomalyco/opencode/commit/9847cadc01cfca9c8b3a4f3ae52dbda7b1bb0b8d) Merge branch 'sst:dev' into make-shell-configurable ### 📊 Changes **3 files changed** (+60 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+33 -0) 📝 `internal/config/config.go` (+7 -0) 📝 `internal/llm/tools/shell/shell.go` (+20 -4) </details> ### 📄 Description ## Summary - Add ability to configure the shell used by the bash tool via the config file - Default to $SHELL environment variable if not specified in config - Fall back to /bin/bash if neither config nor environment variable is set - Allow customizing shell arguments This is needed because I use nushell as my default shell on NixOS and need to specify a very specific path for bash. ## Test plan - Verify that shell configuration works with different shells - Verify that shell arguments can be customized - Verify backward compatibility with existing behavior --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:40 -05:00
yindo closed this issue 2026-02-16 18:13:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9499