fix: enable shell alias expansion in ! command (#5621)
parent
e11051a29a
commit
3460e29107
|
|
@ -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)}
|
||||
`,
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue