mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-04 08:24:59 +01:00
feat(shell): load .zshenv and respect ZDOTDIR if present (#1958)
This commit is contained in:
@@ -1066,7 +1066,8 @@ export namespace Session {
|
|||||||
|
|
||||||
const script =
|
const script =
|
||||||
scripts[shellName] ??
|
scripts[shellName] ??
|
||||||
`[[ -f ~/.zshrc ]] && source ~/.zshrc >/dev/null 2>&1 || true
|
`[[ -f ~/.zshenv ]] && source ~/.zshenv >/dev/null 2>&1 || true
|
||||||
|
[[ -f "\${ZDOTDIR:-$HOME}/.zshrc" ]] && source "\${ZDOTDIR:-$HOME}/.zshrc" >/dev/null 2>&1 || true
|
||||||
[[ -f ~/.bashrc ]] && source ~/.bashrc >/dev/null 2>&1 || true
|
[[ -f ~/.bashrc ]] && source ~/.bashrc >/dev/null 2>&1 || true
|
||||||
eval "${input.command}"`
|
eval "${input.command}"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user