Files
dotfiles/.zshenv
Petr Nyc bf5f2131b4 refactor(shell): simplify zsh profile startup
Summary:
- Move reusable PATH setup into a shared .pathrc and source it from zsh
  login and interactive startup.
- Keep .zshenv minimal, and guard p10k, Oh My Zsh, and terminal-only
  setup so non-terminal shells stay quiet.
- Preserve Emacs vterm p10k support while skipping prompt-heavy setup in
  eshell-style sessions.

Rationale:
- The local profile had startup-time side effects, duplicate PATH/plugin
  setup, and non-terminal noise similar to the cleanup already done on
  dabel.
- Neutral helper names avoid personal prefixes in reusable profile code.

Tests:
- zsh -n ~/.zshenv ~/.zprofile ~/.zshrc ~/.pathrc
- zsh -lic 'print ok'
- INSIDE_EMACS=eshell TERM=dumb zsh -ic 'print ok; print theme=$ZSH_THEME'
- INSIDE_EMACS=vterm TERM=xterm-256color zsh -ic 'print ok; print theme=$ZSH_THEME'
- SSH_AUTH_SOCK=/tmp/test-sock zsh -lc 'printf "%s\n" "$SSH_AUTH_SOCK"'

Co-authored-by: Codex <codex@openai.com>
2026-06-05 13:36:44 +02:00

10 lines
342 B
Bash

# Minimal zsh environment. This file is read by every zsh process, including
# non-interactive shells, so keep startup work out of it.
export LC_ALL=en_US.UTF-8
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
export seznam6='2a02:598:2::1222'
export OPENAI_API_KEY='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'