| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- ################################################################################
- # $PATH and similar
- ################################################################################
- export GOPATH="$HOME/.go"
- PATH="/opt/homebrew/bin:${PATH}"
- PATH="/opt/homebrew/sbin:${PATH}"
- # Additional Homebrew items that aren't linked by default
- PATH="/opt/homebrew/opt/ruby/bin:${PATH}"
- PATH="/opt/homebrew/opt/libpq/bin:${PATH}"
- PATH="${HOME}/.scripts:${PATH}"
- PATH="${PATH}:/usr/local/bin"
- PATH="${GOPATH}/bin:${PATH}"
- PATH="${HOME}/.gem/bin:${PATH}"
- PATH="${HOME}/.cargo/bin:${PATH}"
- PATH="${HOME}/.poetry/bin:${PATH}"
- PATH="${HOME}/.rvm/bin:${PATH}"
- export PATH
- ################################################################################
- # Color palette and dark mode
- ################################################################################
- source $XDG_CONFIG_HOME/jonathandarker/palette.sh
- export LIGHTMODE_TOGGLE_FLAG_FILE="$XDG_RUNTIME_DIR/lightmode.toggled.flag"
- if [ -f $LIGHTMODE_TOGGLE_FLAG_FILE ]; then
- export JONATHANDARKER_COLOR_BG="$JONATHANDARKER_COLOR_15"
- export JONATHANDARKER_COLOR_BA="$JONATHANDARKER_COLOR_07"
- export JONATHANDARKER_COLOR_FG="$JONATHANDARKER_COLOR_00"
- export JONATHANDARKER_COLOR_FA="$JONATHANDARKER_COLOR_08"
- fi
- ################################################################################
- # Ports
- ################################################################################
- export SURFINGKEYS_SETTINGS_SERVER_PORT="21212"
- ################################################################################
- # Aliases
- ################################################################################
- alias n="nvim"
- alias lg="lazygit"
- alias ld="lazydocker"
- # git
- alias g="git"
- alias gs="git s"
- alias gl="git l"
- # ls
- alias ls="lsd -a"
- alias la="lsd -la"
- # clear
- alias c="clear && NEW_LINE_BEFORE_PROMPT=0"
- alias clear="clear && NEW_LINE_BEFORE_PROMPT=0"
- #python
- alias python="python3"
- alias py="python3"
- #granted
- alias assume=". assume"
- ################################################################################
- # nvm
- # Lazy-loaded, using logic from https://github.com/undg/zsh-nvm-lazy-load
- ################################################################################
- export NVM_DIR="$HOME/.nvm"
- load-nvm() {
- [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
- }
- nvm() { unset -f nvm; load-nvm; nvm "$@" }
- node() { unset -f node; load-nvm; node "$@"; }
- npm() { unset -f npm; load-nvm; npm "$@"; }
- pnpm() { unset -f pnpm; load-nvm; pnpm "$@"; }
- yarn() { unset -f yarn; load-nvm; yarn "$@"; }
- ################################################################################
- # Private or system-specific environment variables
- ################################################################################
- source $ZDOTDIR/.zshenv.private
|