summaryrefslogtreecommitdiffhomepage
path: root/internal/config
diff options
context:
space:
mode:
authorEd Zynda <[email protected]>2025-05-16 14:27:28 +0300
committerGitHub <[email protected]>2025-05-16 06:27:28 -0500
commit4a444e9c9b7674c6b07a1a012a6467e45c3af1ec (patch)
treef4c85dbbe33a9edf6a4232fad62d7f6dad64490c /internal/config
parent623d132772b9c69dd6d99ed4004b26c46dbe43a4 (diff)
downloadopencode-4a444e9c9b7674c6b07a1a012a6467e45c3af1ec.tar.gz
opencode-4a444e9c9b7674c6b07a1a012a6467e45c3af1ec.zip
feat: Make shell configurable via config file (#23)
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 1d741bc91..70c05ac02 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -73,6 +73,12 @@ type TUIConfig struct {
CustomTheme map[string]any `json:"customTheme,omitempty"`
}
+// ShellConfig defines the configuration for the shell used by the bash tool.
+type ShellConfig struct {
+ Path string `json:"path,omitempty"`
+ Args []string `json:"args,omitempty"`
+}
+
// Config is the main configuration structure for the application.
type Config struct {
Data Data `json:"data"`
@@ -85,6 +91,7 @@ type Config struct {
DebugLSP bool `json:"debugLSP,omitempty"`
ContextPaths []string `json:"contextPaths,omitempty"`
TUI TUIConfig `json:"tui"`
+ Shell ShellConfig `json:"shell,omitempty"`
}
// Application constants