Skip to content

Commit adc3502

Browse files
mst-mktCopilot
andcommitted
fix(cli): ensure ZDOTDIR exists before touching .zshenv in install.sh
Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ca35073 commit adc3502

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/cli/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ configure_shell_path() {
351351
# Create .zshenv if missing — it's the canonical place for PATH in zsh
352352
# and is sourced by all session types (interactive, non-interactive, IDE)
353353
local zsh_dir="${ZDOTDIR:-$HOME}"
354+
mkdir -p "$zsh_dir"
354355
[ -f "$zsh_dir/.zshenv" ] || touch "$zsh_dir/.zshenv"
355356
local zshenv_result=0 zshrc_result=0
356357
add_bin_to_path "$zsh_dir/.zshenv" || zshenv_result=$?

0 commit comments

Comments
 (0)