fix: enable shell alias expansion in ! command (#5621)

thinking-toggle-wip
Fran Zekan 2025-12-16 18:32:31 +01:00 committed by Aiden Cline
parent e11051a29a
commit 3460e29107
1 changed files with 3 additions and 2 deletions

View File

@ -1097,7 +1097,7 @@ export namespace SessionPrompt {
`
[[ -f ~/.zshenv ]] && source ~/.zshenv >/dev/null 2>&1 || true
[[ -f "\${ZDOTDIR:-$HOME}/.zshrc" ]] && source "\${ZDOTDIR:-$HOME}/.zshrc" >/dev/null 2>&1 || true
${input.command}
eval ${JSON.stringify(input.command)}
`,
],
},
@ -1106,8 +1106,9 @@ export namespace SessionPrompt {
"-c",
"-l",
`
shopt -s expand_aliases
[[ -f ~/.bashrc ]] && source ~/.bashrc >/dev/null 2>&1 || true
${input.command}
eval ${JSON.stringify(input.command)}
`,
],
},