Skip to content

Commit

Permalink
renamed env variable to TABBY_CONFIG_DIRECTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalser committed Oct 3, 2023
1 parent d1a837b commit bd31db9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# CONFIG_DIRECTORY="CONFIG_FILE_PATH"
# TABBY_CONFIG_DIRECTORY="PATH_TO_DIRECTORY"
4 changes: 2 additions & 2 deletions app/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as yaml from 'js-yaml'
import { writeFile } from 'atomically'


export const configPath = path.join(process.env.CONFIG_DIRECTORY!, 'config.yaml')
const legacyConfigPath = path.join(process.env.CONFIG_DIRECTORY!, '../terminus', 'config.yaml')
export const configPath = path.join(process.env.TABBY_CONFIG_DIRECTORY!, 'config.yaml')
const legacyConfigPath = path.join(process.env.TABBY_CONFIG_DIRECTORY!, '../terminus', 'config.yaml')


export function migrateConfig (): void {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { app, ipcMain, Menu, dialog } from 'electron'
// set defaults of environment variables
import 'dotenv/config'
process.env.TABBY_PLUGINS ??= ''
process.env.CONFIG_DIRECTORY ??= app.getPath('userData')
process.env.TABBY_CONFIG_DIRECTORY ??= app.getPath('userData')


import 'v8-compile-cache'
Expand Down

0 comments on commit bd31db9

Please sign in to comment.