.zshrc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # benchmark startup:
  2. # zmodload zsh/zprof
  3. # ensure /usr/local/bin is in path
  4. export PATH=/usr/local/bin:~/.local/bin:$PATH
  5. # Homebrew — load EARLY so brew's completions are on $fpath before compinit runs
  6. # (zgen triggers compinit below; otherwise _zoxide & all brew completions get missed).
  7. if [ -x /opt/homebrew/bin/brew ]; then
  8. eval "$(/opt/homebrew/bin/brew shellenv)"
  9. elif [ -x /usr/local/bin/brew ]; then
  10. eval "$(/usr/local/bin/brew shellenv)"
  11. fi
  12. # load all files from .shell/zshrc.d directory
  13. if [ -d $HOME/.zshrc.d ]; then
  14. for file in $HOME/.zshrc.d/*.zsh; do
  15. source $file
  16. done
  17. fi
  18. # load all files from .shell/rc.d directory
  19. if [ -d $HOME/.rc.d ]; then
  20. for file in $HOME/.rc.d/*.sh; do
  21. source $file
  22. done
  23. fi
  24. if [[ -n $SSH_CONNECTION ]]; then
  25. export EDITOR='vim'
  26. else
  27. export EDITOR='zed --wait'
  28. fi
  29. # The next line updates PATH for the Google Cloud SDK.
  30. if [ -f '/Users/tom/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/path.zsh.inc'; fi
  31. # The next line enables shell command completion for gcloud.
  32. if [ -f '/Users/tom/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/completion.zsh.inc'; fi
  33. # (brew shellenv moved to the top so completions load before compinit)
  34. # bun completions
  35. [ -s "/Users/tom/.bun/_bun" ] && source "/Users/tom/.bun/_bun"
  36. # bun
  37. export BUN_INSTALL="$HOME/.bun"
  38. export PATH="$BUN_INSTALL/bin:$PATH"
  39. # zoxide
  40. if command -v zoxide >/dev/null 2>&1; then eval "$(zoxide init zsh)"; fi
  41. [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
  42. # opencode
  43. [ -d "$HOME/.opencode/bin" ] && export PATH="$HOME/.opencode/bin:$PATH"
  44. # LM Studio CLI (lms)
  45. [ -d "$HOME/.lmstudio/bin" ] && export PATH="$PATH:$HOME/.lmstudio/bin"
  46. # Added by LM Studio CLI (lms)
  47. export PATH="$PATH:/Users/tom/.lmstudio/bin"
  48. # End of LM Studio CLI section