From 13cc065ec014b86369dfe4ad60d1a43fa06fd251 Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Thu, 17 Sep 2026 19:45:23 +0100 Subject: dotfiles Shell, editor and terminal configuration, the tools that go with them, and szecret, an age-based secret manager whose store lives elsewhere. History restarts here. What came before was not written to be read by anyone else, and carried machine names, addresses and an encrypted secret store; it is kept privately instead. What is left is meant to be safe on any machine, including one whose owner is not me: see CLAUDE.md for the rule it is written to. --- config/zshenv | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config/zshenv (limited to 'config/zshenv') diff --git a/config/zshenv b/config/zshenv new file mode 100644 index 0000000..53580a7 --- /dev/null +++ b/config/zshenv @@ -0,0 +1,23 @@ +# ~/.zshenv — read by *every* zsh, including non-interactive, non-login ones. +# +# For `ssh `, `zsh -c ...` and plain scripts this is the *only* +# startup file zsh reads: ~/.zprofile and ~/.zshrc are both skipped, and on +# macOS so is /etc/zprofile, which is what runs path_helper. Without this file +# such shells start with the bare system PATH (/usr/bin:/bin:/usr/sbin:/sbin). +# +# That broke `mosh `: mosh launches mosh-server over ssh as a +# non-interactive command, and Homebrew's /opt/homebrew/bin was not on PATH, so +# it died with "command not found: mosh-server". Linux hosts happened to work +# only because mosh-server lives in /usr/bin there. +# +# Keep this file a thin shim. The actual environment lives in config/env, which +# is POSIX sh so bash can share it. Interactive-only setup (aliases, history, +# theme, profile.d, jenv) belongs in config/profile, sourced from ~/.zshrc. + +# Keep $path/$PATH free of duplicates for the life of this shell. zsh-only, so +# it lives here rather than in the POSIX config/env. +typeset -U path PATH + +[ -r "$HOME/.env" ] && . "$HOME/.env" + +# vim: filetype=zsh -- cgit v1.2.3