| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- ################################################################################
- # $PATH and similar
- ################################################################################
- export GOPATH="$HOME/.go"
- PATH="/opt/homebrew/bin:${PATH}"
- PATH="/opt/homebrew/sbin:${PATH}"
- PATH="/opt/homebrew/opt/ruby/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
- ################################################################################
- # 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 "$@"; }
|