mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
refactor: fix shell configuration bug
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ const CD_COMMAND_PREFIX = '--yank-note-run-command-cd--'
|
||||
const defaultShell = os.platform() === 'win32' ? 'cmd.exe' : (process.env.SHELL || 'bash')
|
||||
|
||||
const getShell = () => {
|
||||
const shell = config.get(configKey, defaultShell) || defaultShell
|
||||
const shell = (config.get(configKey, defaultShell) || '').trim() || defaultShell
|
||||
|
||||
// use full path
|
||||
// TODO better way.
|
||||
|
||||
Reference in New Issue
Block a user