mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 15:41:50 +00:00
thanks copilot bro
This commit is contained in:
parent
2b6f92aebb
commit
7ca307d56b
3 changed files with 3 additions and 2 deletions
|
|
@ -193,7 +193,7 @@ export const SettingsGeneral: Component = () => {
|
|||
void syncDisplayBackend()
|
||||
})
|
||||
|
||||
const autoOption = { id: "auto", value: "", label: "Auto (Default)" }
|
||||
const autoOption = { id: "auto", value: "", label: language.t("settings.general.row.shell.autoDefault") }
|
||||
const currentShell = createMemo(() => globalSync.data.config.shell ?? "")
|
||||
|
||||
const shellOptions = createMemo<ShellSelectOption[]>(() => {
|
||||
|
|
|
|||
|
|
@ -730,6 +730,7 @@ export const dict = {
|
|||
"settings.general.row.language.description": "Change the display language for OpenCode",
|
||||
"settings.general.row.shell.title": "Terminal Shell",
|
||||
"settings.general.row.shell.description": "Choose the shell used for your terminal. Compatible shells are also used for agent tool calls.",
|
||||
"settings.general.row.shell.autoDefault": "Auto (Default)",
|
||||
"settings.general.row.shell.terminalOnly": "terminal only",
|
||||
"settings.general.row.appearance.title": "Appearance",
|
||||
"settings.general.row.appearance.description": "Customise how OpenCode looks on your device",
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ function writable(info: Info) {
|
|||
|
||||
function writableGlobal(info: Info) {
|
||||
const next = writable(info)
|
||||
// When a user changes config from a value back to default in the Desktop app, we dont want to leave a blank `"shell": "",` key
|
||||
// When a user changes config from a value back to default in the Desktop app, we don't want to leave a blank `"shell": "",` key
|
||||
if ("shell" in next && next.shell === "") return { ...next, shell: undefined }
|
||||
return next
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue