|
|
# Configure history
|
|
|
setopt APPEND_HISTORY
|
|
|
setopt EXTENDED_HISTORY
|
|
|
setopt HIST_FIND_NO_DUPS
|
|
|
setopt HIST_SAVE_NO_DUPS
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
setopt INC_APPEND_HISTORY_TIME
|
|
|
export HISTSIZE=1000000
|
|
|
export SAVEHIST=1000000
|
|
|
|
|
|
# Omit `/` from the list of word characters so delete work on a path only deletes sub-path and not the whole thing
|
|
|
export WORDCHARS=${WORDCHARS/\/}
|
|
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
export LANG=en_US.UTF-8
|
|
|
export TERM="xterm-256color"
|
|
|
export ACK_PAGER_COLOR="less -x4SRFX"
|
|
|
|
|
|
# Configure emacs as default editor
|
|
|
export GIT_EDITOR="emacs -nw -Q"
|
|
|
export VISUAL="emacs -nw -Q"
|
|
|
export EDITOR="emacs -nw -Q"
|
|
|
|
|
|
# Configure Go
|
|
|
export GOPATH=~/go
|
|
|
|
|
|
# Configure virtualenv
|
|
|
export WORKON_HOME=~/.env
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
|
# Configure dotnet
|
|
|
# DEV: Opt out of telemetry
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
|
|
|
|
# Configure RVM
|
|
|
export rvm_project_rvmrc=1
|
|
|
|
|
|
# Configure NVM
|
|
|
export NVM_DIR=~/.nvm
|
|
|
|
|
|
# Configure GPG
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
|
|
# Configure Path
|
|
|
PATH="/usr/local/bin:/usr/local/sbin:/sbin:$PATH"
|
|
|
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH:$HOME/.local/bin"
|
|
|
PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
|
|
|
PATH="/usr/local/heroku/bin:$PATH"
|
|
|
PATH="/usr/local/opt/python/libexec/bin:$PATH"
|
|
|
PATH="/usr/local/opt/sqlite/bin:$PATH"
|
|
|
PATH="$HOME/.cargo/bin:$PATH"
|
|
|
PATH="~/.local/bin:/usr/local/bin:/usr/local/sbin:/sbin:$PATH"
|
|
|
PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
|
|
|
PATH="$HOME/.poetry/bin:$PATH"
|
|
|
PATH="/opt/homebrew/bin:$PATH"
|
|
|
command -v pyenv 2>&1 > /dev/null && PATH="$(pyenv root)/shims:${PATH}"
|
|
|
export PATH="$HOME/.rvm/bin:$PATH"
|
|
|
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
|
|
|
|
|
|
export LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/bzip2/lib"
|
|
|
export CPPFLAGS="-I/usr/local/opt/zlib/include -I/usr/local/opt/bzip2/include"
|
|
|
|
|
|
# Load in any additional .env files provided
|
|
|
for f in $(find $ZSH_DIR/ -maxdepth 1 -print -type f | grep '\.env\..*\.zsh' | sort)
|
|
|
do
|
|
|
source "$f"
|
|
|
done
|
|
|
|