diff options
| author | hc <hc@email.ch> | 2026-03-23 20:26:54 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2026-03-23 20:26:54 +0800 |
| commit | 7733b01cc45768b0a81fb4bd56b69a1c21b29ddc (patch) | |
| tree | e855c57912e27231f8803e3f79f8c370c9409f4c | |
| parent | 74cebff472e561dc275738833d2a77896e1e7cbc (diff) | |
add mac zshrc
| -rw-r--r-- | mac/zshrc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mac/zshrc b/mac/zshrc new file mode 100644 index 0000000..7a304b9 --- /dev/null +++ b/mac/zshrc | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | eval "$(/opt/homebrew/bin/brew shellenv)" | ||
| 2 | export PATH="/opt/homebrew/opt/openssh/bin:$PATH" | ||
| 3 | export PATH="/opt/homebrew/Cellar/netcat/0.7.1/bin:$PATH" | ||
| 4 | export PATH="/opt/homebrew/opt/curl/bin:$PATH" | ||
| 5 | export CLICOLOR=1 | ||
| 6 | export LSCOLORS=GxFxCxDxBxegedabagaced | ||
| 7 | PROMPT="[%F{green}%n%f@%m %F{135}%1~%f]$ " | ||
| 8 | . "$HOME/.cargo/env" | ||
| 9 | export PATH="/opt/homebrew/opt/llvm/bin:$PATH" | ||
| 10 | |||
| 11 | ### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT) | ||
| 12 | export PATH="/Users/haochengxie/.rd/bin:$PATH" | ||
| 13 | ### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT) | ||
| 14 | |||
| 15 | export NVM_DIR="$HOME/.nvm" | ||
| 16 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
| 17 | [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
| 18 | |||
| 19 | alias claude="/Users/haochengxie/.claude/local/claude" | ||
| 20 | export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH" | ||
| 21 | |||
| 22 | # Added by LM Studio CLI (lms) | ||
| 23 | export PATH="$PATH:/Users/haochengxie/.lmstudio/bin" | ||
| 24 | # End of LM Studio CLI section | ||
| 25 | |||
| 26 | export OLLAMA_MODELS="/Volumes/whitefast8t/ollama_models" | ||
| 27 | alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale" | ||
| 28 | |||
| 29 | # SSH agent - reuse existing or start new | ||
| 30 | if [ -z "$SSH_AUTH_SOCK" ] || ! ssh-add -l &>/dev/null; then | ||
| 31 | eval "$(ssh-agent -s)" > /dev/null | ||
| 32 | ssh-add ~/macm4-resident | ||
| 33 | fi | ||
