.zshenv 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. # Color palette and dark mode
  20. ################################################################################
  21. source $XDG_CONFIG_HOME/jonathandarker/palette.sh
  22. export LIGHTMODE_TOGGLE_FLAG_FILE="$XDG_RUNTIME_DIR/lightmode.toggled.flag"
  23. if [ -f $LIGHTMODE_TOGGLE_FLAG_FILE ]; then
  24. export JONATHANDARKER_COLOR_BG="$JONATHANDARKER_COLOR_15"
  25. export JONATHANDARKER_COLOR_BA="$JONATHANDARKER_COLOR_07"
  26. export JONATHANDARKER_COLOR_FG="$JONATHANDARKER_COLOR_00"
  27. export JONATHANDARKER_COLOR_FA="$JONATHANDARKER_COLOR_08"
  28. fi
  29. ################################################################################
  30. # Ports
  31. ################################################################################
  32. export SURFINGKEYS_SETTINGS_SERVER_PORT="21212"
  33. ################################################################################
  34. # Aliases
  35. ################################################################################
  36. alias n="nvim"
  37. alias lg="lazygit"
  38. alias ld="lazydocker"
  39. # git
  40. alias g="git"
  41. alias gs="git s"
  42. alias gl="git l"
  43. # ls
  44. alias ls="lsd -a"
  45. alias la="lsd -la"
  46. # clear
  47. alias c="clear && NEW_LINE_BEFORE_PROMPT=0"
  48. alias clear="clear && NEW_LINE_BEFORE_PROMPT=0"
  49. #python
  50. alias python="python3"
  51. alias py="python3"
  52. #granted
  53. alias assume=". assume"
  54. ################################################################################
  55. # nvm
  56. # Lazy-loaded, using logic from https://github.com/undg/zsh-nvm-lazy-load
  57. ################################################################################
  58. export NVM_DIR="$HOME/.nvm"
  59. load-nvm() {
  60. [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
  61. [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
  62. }
  63. nvm() { unset -f nvm; load-nvm; nvm "$@" }
  64. node() { unset -f node; load-nvm; node "$@"; }
  65. npm() { unset -f npm; load-nvm; npm "$@"; }
  66. pnpm() { unset -f pnpm; load-nvm; pnpm "$@"; }
  67. yarn() { unset -f yarn; load-nvm; yarn "$@"; }
  68. ################################################################################
  69. # Private or system-specific environment variables
  70. ################################################################################
  71. source $ZDOTDIR/.zshenv.private