tabby/tabby-local/src/config.ts
2023-06-04 20:34:28 +02:00

47 lines
1.0 KiB
TypeScript

import { ConfigProvider, Platform } from 'tabby-core'
/** @hidden */
export class TerminalConfigProvider extends ConfigProvider {
defaults = {
terminal: {
autoOpen: true,
useConPTY: true,
environment: {},
setComSpec: false,
},
}
platformDefaults = {
[Platform.macOS]: {
terminal: {
profile: 'local:default',
},
hotkeys: {
'new-tab': [
'⌘-T',
],
},
},
[Platform.Windows]: {
terminal: {
profile: 'local:cmd-clink',
},
hotkeys: {
'new-tab': [
'Ctrl-Shift-T',
],
},
},
[Platform.Linux]: {
terminal: {
profile: 'local:default',
},
hotkeys: {
'new-tab': [
'Ctrl-Shift-T',
],
},
},
}
}