mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-12 07:29:59 +00:00
47 lines
1.0 KiB
TypeScript
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',
|
|
],
|
|
},
|
|
},
|
|
}
|
|
}
|