From 0985570c0cbbba7b6a70497ac2b975e52f569040 Mon Sep 17 00:00:00 2001 From: stephendolan Date: Mon, 12 Oct 2026 17:21:17 -0400 Subject: [PATCH] fix(shell): skip the Vite+ env when Vite+ is not installed Every new zsh printed "no such file or directory" for ~/.vite-plus/env on machines without Vite+, such as the home server's media account. Source it only when present, and keep zshenv's exit status zero. Co-Authored-By: Claude Opus 5.5 --- shell/zshenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/zshenv b/shell/zshenv index 0608d25..dd81771 100644 --- a/shell/zshenv +++ b/shell/zshenv @@ -78,4 +78,6 @@ if [[ ! "$SSH_AUTH_SOCK" =~ /ssh-.*/agent ]]; then fi # Vite+ bin (https://viteplus.dev) -. "$HOME/.vite-plus/env" +if [[ -f "$HOME/.vite-plus/env" ]]; then + . "$HOME/.vite-plus/env" +fi