mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-15 21:04:35 +00:00
Compare commits
3 Commits
v1.0.0-alp
...
v1.0.0-alp
Author | SHA1 | Date | |
---|---|---|---|
![]() |
33514cb073 | ||
![]() |
4d2be9ec89 | ||
![]() |
1b2236eb90 |
@@ -19,7 +19,7 @@
|
|||||||
"@angular/forms": "4.3.0",
|
"@angular/forms": "4.3.0",
|
||||||
"@angular/platform-browser": "4.3.0",
|
"@angular/platform-browser": "4.3.0",
|
||||||
"@angular/platform-browser-dynamic": "4.3.0",
|
"@angular/platform-browser-dynamic": "4.3.0",
|
||||||
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.28",
|
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.2",
|
||||||
"devtron": "1.4.0",
|
"devtron": "1.4.0",
|
||||||
"electron-config": "0.2.1",
|
"electron-config": "0.2.1",
|
||||||
"electron-debug": "^1.0.1",
|
"electron-debug": "^1.0.1",
|
||||||
|
@@ -44,9 +44,9 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
tslib "^1.7.1"
|
tslib "^1.7.1"
|
||||||
|
|
||||||
"@ng-bootstrap/ng-bootstrap@^1.0.0-alpha.28":
|
"@ng-bootstrap/ng-bootstrap@^1.0.0-beta.2":
|
||||||
version "1.0.0-alpha.28"
|
version "1.0.0-beta.2"
|
||||||
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-alpha.28.tgz#30a6503bf7f94f9d3187591fb3267b59cc0cdaad"
|
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-1.0.0-beta.2.tgz#3d4b567b0334a9ee631b73c72156cd3a9d3cd29f"
|
||||||
|
|
||||||
"@types/mz@0.0.31":
|
"@types/mz@0.0.31":
|
||||||
version "0.0.31"
|
version "0.0.31"
|
||||||
|
@@ -53,7 +53,7 @@ const PROVIDERS = [
|
|||||||
BrowserModule,
|
BrowserModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgbModule,
|
NgbModule.forRoot(),
|
||||||
PerfectScrollbarModule.forRoot({
|
PerfectScrollbarModule.forRoot({
|
||||||
suppressScrollX: true,
|
suppressScrollX: true,
|
||||||
}),
|
}),
|
||||||
|
@@ -13,35 +13,39 @@ export class HyperColorSchemes extends TerminalColorSchemeProvider {
|
|||||||
let themes: ITerminalColorScheme[] = []
|
let themes: ITerminalColorScheme[] = []
|
||||||
|
|
||||||
plugins.forEach(plugin => {
|
plugins.forEach(plugin => {
|
||||||
let module = (global as any).require(path.join(pluginsPath, plugin))
|
try {
|
||||||
if (module.decorateConfig) {
|
let module = (global as any).require(path.join(pluginsPath, plugin))
|
||||||
let config = module.decorateConfig({})
|
if (module.decorateConfig) {
|
||||||
if (config.colors) {
|
let config = module.decorateConfig({})
|
||||||
themes.push({
|
if (config.colors) {
|
||||||
name: plugin,
|
themes.push({
|
||||||
foreground: config.foregroundColor,
|
name: plugin,
|
||||||
background: config.backgroundColor,
|
foreground: config.foregroundColor,
|
||||||
cursor: config.cursorColor,
|
background: config.backgroundColor,
|
||||||
colors: config.colors.black ? [
|
cursor: config.cursorColor,
|
||||||
config.colors.black,
|
colors: config.colors.black ? [
|
||||||
config.colors.red,
|
config.colors.black,
|
||||||
config.colors.green,
|
config.colors.red,
|
||||||
config.colors.yellow,
|
config.colors.green,
|
||||||
config.colors.blue,
|
config.colors.yellow,
|
||||||
config.colors.magenta,
|
config.colors.blue,
|
||||||
config.colors.cyan,
|
config.colors.magenta,
|
||||||
config.colors.white,
|
config.colors.cyan,
|
||||||
config.colors.lightBlack,
|
config.colors.white,
|
||||||
config.colors.lightRed,
|
config.colors.lightBlack,
|
||||||
config.colors.lightGreen,
|
config.colors.lightRed,
|
||||||
config.colors.lightYellow,
|
config.colors.lightGreen,
|
||||||
config.colors.lightBlue,
|
config.colors.lightYellow,
|
||||||
config.colors.lightMagenta,
|
config.colors.lightBlue,
|
||||||
config.colors.lightCyan,
|
config.colors.lightMagenta,
|
||||||
config.colors.lightWhite,
|
config.colors.lightCyan,
|
||||||
] : config.colors,
|
config.colors.lightWhite,
|
||||||
})
|
] : config.colors,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.debug('Skipping Hyper plugin', plugin, err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -156,6 +156,9 @@ export class Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getWorkingDirectory (): Promise<string> {
|
async getWorkingDirectory (): Promise<string> {
|
||||||
|
if (!this.truePID) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
let lines = (await exec(`lsof -p ${this.truePID} -Fn`))[0].toString().split('\n')
|
let lines = (await exec(`lsof -p ${this.truePID} -Fn`))[0].toString().split('\n')
|
||||||
if (lines[1] === 'fcwd') {
|
if (lines[1] === 'fcwd') {
|
||||||
|
Reference in New Issue
Block a user