refactor: fix shell configuration bug

This commit is contained in:
purocean
2024-07-19 12:46:29 +08:00
parent 74e291c835
commit d7ed8f1996
+1 -1
View File
@@ -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.