-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.zshrc
More file actions
60 lines (48 loc) · 1.56 KB
/
Copy path.zshrc
File metadata and controls
60 lines (48 loc) · 1.56 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
# ========================================
# Zsh configuration for agent compatibility
# ========================================
# Primary shell: fish (~/.config/fish/config.fish)
# This file provides same tool availability for zsh-spawned agents
# --- Login/Non-interactive ---
# Homebrew shellenv
if [[ -x /opt/homebrew/bin/brew ]]; then
eval "$(SHELL=/bin/zsh /opt/homebrew/bin/brew shellenv)"
fi
# Environment variables
export CACHE="$HOME/.cache"
export EDITOR="hx"
export VISUAL="zed --wait"
# Telemetry opt-outs
export DO_NOT_TRACK=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export STORYBOOK_DISABLE_TELEMETRY=1
export AZURE_CORE_COLLECT_TELEMETRY=0
# Homebrew behavior
export HOMEBREW_BAT=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_ENV_HINTS=1
export HOMEBREW_AUTO_UPDATE_SECS=86400
# PATH entries
typeset -U path
path=(
"$HOME/.opencode/bin"
"$HOME/.lmstudio/bin"
$path
)
export PATH
# --- Interactive ---
if [[ -o interactive ]]; then
setopt no_beep
# Tool initializations (only when attached to TTY)
if [[ -t 0 && -t 1 ]]; then
command -v fzf >/dev/null 2>&1 && eval "$(fzf --zsh)"
command -v zoxide >/dev/null 2>&1 && eval "$(zoxide init zsh)"
command -v wt >/dev/null 2>&1 && eval "$(wt config shell init zsh)"
fi
[[ -x "$HOME/.local/bin/mise" ]] && eval "$($HOME/.local/bin/mise activate zsh)"
else
# Shims for non-interactive sessions (scripts, agents)
[[ -x "$HOME/.local/bin/mise" ]] && eval "$($HOME/.local/bin/mise activate zsh --shims)"
fi
# Added by Antigravity CLI installer
export PATH="/Users/marco/.local/bin:$PATH"