From 7733b01cc45768b0a81fb4bd56b69a1c21b29ddc Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 23 Mar 2026 20:26:54 +0800 Subject: add mac zshrc --- mac/zshrc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mac/zshrc diff --git a/mac/zshrc b/mac/zshrc new file mode 100644 index 0000000..7a304b9 --- /dev/null +++ b/mac/zshrc @@ -0,0 +1,33 @@ +eval "$(/opt/homebrew/bin/brew shellenv)" +export PATH="/opt/homebrew/opt/openssh/bin:$PATH" +export PATH="/opt/homebrew/Cellar/netcat/0.7.1/bin:$PATH" +export PATH="/opt/homebrew/opt/curl/bin:$PATH" +export CLICOLOR=1 +export LSCOLORS=GxFxCxDxBxegedabagaced +PROMPT="[%F{green}%n%f@%m %F{135}%1~%f]$ " +. "$HOME/.cargo/env" +export PATH="/opt/homebrew/opt/llvm/bin:$PATH" + +### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT) +export PATH="/Users/haochengxie/.rd/bin:$PATH" +### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT) + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + +alias claude="/Users/haochengxie/.claude/local/claude" +export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH" + +# Added by LM Studio CLI (lms) +export PATH="$PATH:/Users/haochengxie/.lmstudio/bin" +# End of LM Studio CLI section + +export OLLAMA_MODELS="/Volumes/whitefast8t/ollama_models" +alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale" + +# SSH agent - reuse existing or start new +if [ -z "$SSH_AUTH_SOCK" ] || ! ssh-add -l &>/dev/null; then + eval "$(ssh-agent -s)" > /dev/null + ssh-add ~/macm4-resident +fi -- cgit