Guest

Untitled 1343

Apr 15th, 2026
44
0
Never
Not a member of GistPad yet? Sign Up, it unlocks many cool features!
None 1.47 KB | None | 0 0
  1. # .zshenv
  2. # Keep this file minimal: it runs for every zsh invocation (interactive and non-interactive).
  3.  
  4. # Cursor may call this while probing shell state. Define a no-op fallback if missing.
  5. if ! typeset -f dump_zsh_state >/dev/null 2>&1; then
  6. dump_zsh_state() { :; }
  7. fi
  8.  
  9. # Ensure common binary locations exist even before interactive shell setup runs.
  10. export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:${PATH}"
  11.  
  12. # Prefer Homebrew's canonical environment when available.
  13. if [[ -x /opt/homebrew/bin/brew ]]; then
  14. eval "$(/opt/homebrew/bin/brew shellenv)"
  15. elif [[ -x /usr/local/bin/brew ]]; then
  16. eval "$(/usr/local/bin/brew shellenv)"
  17. fi
RAW Paste Data Copied