diff options
| author | Ed Zynda <[email protected]> | 2025-05-16 14:27:28 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-16 06:27:28 -0500 |
| commit | 4a444e9c9b7674c6b07a1a012a6467e45c3af1ec (patch) | |
| tree | f4c85dbbe33a9edf6a4232fad62d7f6dad64490c /internal/config | |
| parent | 623d132772b9c69dd6d99ed4004b26c46dbe43a4 (diff) | |
| download | opencode-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.go | 7 |
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 |
