1
0

.zshrc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. # load all files from .shell/zshrc.d directory
  6. if [ -d $HOME/.zshrc.d ]; then
  7. for file in $HOME/.zshrc.d/*.zsh; do
  8. source $file
  9. done
  10. fi
  11. # load all files from .shell/rc.d directory
  12. if [ -d $HOME/.rc.d ]; then
  13. for file in $HOME/.rc.d/*.sh; do
  14. source $file
  15. done
  16. fi
  17. if [[ -n $SSH_CONNECTION ]]; then
  18. export EDITOR='vim'
  19. else
  20. export EDITOR='zed --wait'
  21. fi
  22. # The next line updates PATH for the Google Cloud SDK.
  23. if [ -f '/Users/tom/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/path.zsh.inc'; fi
  24. # The next line enables shell command completion for gcloud.
  25. if [ -f '/Users/tom/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/completion.zsh.inc'; fi
  26. if [ -f '/opt/homebrew/bin/brew' ]; then eval "$(/opt/homebrew/bin/brew shellenv)"; fi
  27. # bun completions
  28. [ -s "/Users/tom/.bun/_bun" ] && source "/Users/tom/.bun/_bun"
  29. # bun
  30. export BUN_INSTALL="$HOME/.bun"
  31. export PATH="$BUN_INSTALL/bin:$PATH"
  32. # zoxide
  33. if command -v zoxide >/dev/null 2>&1; then eval "$(zoxide init zsh)"; fi
  34. . "$HOME/.cargo/env"