0
0

.zshenv 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ################################################################################
  2. # $PATH and similar
  3. ################################################################################
  4. export GOPATH="$HOME/.go"
  5. PATH="/opt/homebrew/bin:${PATH}"
  6. PATH="/opt/homebrew/sbin:${PATH}"
  7. # Additional Homebrew items that aren't linked by default
  8. PATH="/opt/homebrew/opt/ruby/bin:${PATH}"
  9. PATH="/opt/homebrew/opt/libpq/bin:${PATH}"
  10. PATH="${HOME}/.scripts:${PATH}"
  11. PATH="${PATH}:/usr/local/bin"
  12. PATH="${GOPATH}/bin:${PATH}"
  13. PATH="${HOME}/.gem/bin:${PATH}"
  14. PATH="${HOME}/.cargo/bin:${PATH}"
  15. PATH="${HOME}/.poetry/bin:${PATH}"
  16. PATH="${HOME}/.rvm/bin:${PATH}"
  17. export PATH
  18. ################################################################################
  19. # Miscellaneous configuration options
  20. ################################################################################
  21. export HOMEBREW_NO_ANALYTICS=1
  22. ################################################################################
  23. # Color palette and dark mode
  24. ################################################################################
  25. source $XDG_CONFIG_HOME/jonathandarker/palette.sh
  26. export LIGHTMODE_TOGGLE_FLAG_FILE="$XDG_RUNTIME_DIR/lightmode.toggled.flag"
  27. if [ -f $LIGHTMODE_TOGGLE_FLAG_FILE ]; then
  28. export JONATHANDARKER_COLOR_BG="$JONATHANDARKER_COLOR_15"
  29. export JONATHANDARKER_COLOR_BA="$JONATHANDARKER_COLOR_07"
  30. export JONATHANDARKER_COLOR_FG="$JONATHANDARKER_COLOR_00"
  31. export JONATHANDARKER_COLOR_FA="$JONATHANDARKER_COLOR_08"
  32. fi
  33. ################################################################################
  34. # Ports
  35. ################################################################################
  36. export SURFINGKEYS_SETTINGS_SERVER_PORT="21212"
  37. ################################################################################
  38. # Aliases
  39. ################################################################################
  40. alias n="nvim"
  41. alias lg="lazygit"
  42. alias ld="lazydocker"
  43. # git
  44. alias g="git"
  45. alias gs="git s"
  46. alias gl="git l"
  47. # ls
  48. alias ls="lsd -a"
  49. alias la="lsd -la"
  50. # clear
  51. alias c="clear && NEW_LINE_BEFORE_PROMPT=0"
  52. alias clear="clear && NEW_LINE_BEFORE_PROMPT=0"
  53. #python
  54. alias python="python3.13"
  55. alias py="python3.13"
  56. #granted
  57. alias assume=". assume"
  58. #brew
  59. alias brewdump="(cd $XDG_CONFIG_HOME/brew/ && brew bundle dump --force --describe)"
  60. ################################################################################
  61. # nvm
  62. # Lazy-loaded, using logic from https://github.com/undg/zsh-nvm-lazy-load
  63. ################################################################################
  64. export NVM_DIR="$HOME/.nvm"
  65. load-nvm() {
  66. [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
  67. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
  68. }
  69. nvm() { unset -f nvm; load-nvm; nvm "$@" }
  70. node() { unset -f node; load-nvm; node "$@"; }
  71. npm() { unset -f npm; load-nvm; npm "$@"; }
  72. pnpm() { unset -f pnpm; load-nvm; pnpm "$@"; }
  73. yarn() { unset -f yarn; load-nvm; yarn "$@"; }
  74. ################################################################################
  75. # Private or system-specific environment variables
  76. ################################################################################
  77. source $ZDOTDIR/.zshenv.private