-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshenv
More file actions
71 lines (54 loc) · 2.14 KB
/
zshenv
File metadata and controls
71 lines (54 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# =============================================================================
# ZSHENV CONFIGURATION
# =============================================================================
# Last updated: $(date +%Y-%m-%d)
# Description: Environment variables and PATH setup for zsh
# Note: This file is sourced for all zsh invocations (interactive and non-interactive)
# =============================================================================
# CORE ENVIRONMENT VARIABLES
# =============================================================================
# Editor configuration
export EDITOR="emacs -nw"
export ALTERNATE_EDITOR="vim"
# SSH configuration
export SSH_KEY_PATH="~/.ssh/id_rsa"
# Manual page path
export MANPATH="/usr/local/man:$MANPATH"
# =============================================================================
# PATH CONFIGURATION
# =============================================================================
# System paths
export PATH="$PATH:/usr/local/bin:/usr/bin"
# Homebrew paths (macOS)
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
# Local user binaries
export PATH="$HOME/.local/bin:$PATH"
# =============================================================================
# DEVELOPMENT TOOLS SETUP
# =============================================================================
# Go development
[ -d "$HOME/go/bin" ] && export PATH="$HOME/go/bin:$PATH"
# Rust development
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
# Node.js package managers
if [[ -d "$HOME/Library/pnpm" ]]; then
export PNPM_HOME="$HOME/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"
fi
# =============================================================================
# APPLICATION-SPECIFIC SETUP
# =============================================================================
# Doom Emacs
if [ -d "$HOME/.emacs.d/bin" ]; then
export PATH="$HOME/.emacs.d/bin:$PATH"
fi
# GNU Utils for macOS (via Homebrew)
if [[ -d "/opt/homebrew/opt/make/libexec/gnubin" ]]; then
export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
fi
if [[ -d "/opt/homebrew/opt/nvm" ]]; then
export NVM_HOMEBREW=/opt/homebrew/opt/nvm
fi