2015-12-20 20:39:11 -08:00
|
|
|
source $HOME/.dotfiles/.common.sh
|
2015-12-17 02:29:57 -08:00
|
|
|
|
2015-12-17 11:32:00 -08:00
|
|
|
## Paths
|
|
|
|
# Ensure path arrays do not contain duplicates.
|
|
|
|
typeset -gU cdpath fpath mailpath path
|
|
|
|
|
|
|
|
##
|
|
|
|
export DOCKER_HOST=tcp://server:4243
|
|
|
|
export RUST_SRC_PATH=$HOME/Dropbox/lib/rust/src
|
|
|
|
export GOPATH=$HOME/Dropbox/work/go
|
|
|
|
export ANDROID_HOME=/usr/local/opt/android-sdk
|
|
|
|
export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2
|
2015-12-22 02:41:21 -08:00
|
|
|
export RUBYOPT=rubygems
|
2015-12-17 11:32:00 -08:00
|
|
|
|
2015-12-22 02:41:21 -08:00
|
|
|
# OSX Only
|
|
|
|
if [[ -x /usr/libexec/path_helper ]]; then
|
|
|
|
eval $(/usr/libexec/path_helper -s)
|
|
|
|
fi
|
2015-12-17 11:32:00 -08:00
|
|
|
path=(
|
2015-12-22 02:41:21 -08:00
|
|
|
$DOTFILES/{bin,scripts}
|
|
|
|
$HOME/.{rb,py}env/bin
|
|
|
|
$HOME/bin
|
|
|
|
$GOPATH/bin
|
|
|
|
$ANDROID_HOME/platform-tools
|
|
|
|
$ANDROID_HOME/tools
|
|
|
|
/Library/TeX/texbin
|
|
|
|
$path
|
2015-12-17 11:32:00 -08:00
|
|
|
)
|
|
|
|
|
2015-12-20 20:39:11 -08:00
|
|
|
local FUNC_DIR="$DOTFILES/zsh/functions"
|
2015-12-17 11:32:00 -08:00
|
|
|
fpath=(
|
|
|
|
~/.zsh/completion
|
|
|
|
"$FUNC_DIR"
|
|
|
|
$fpath
|
|
|
|
)
|
|
|
|
|
2015-11-25 14:28:31 -08:00
|
|
|
# Browser
|
|
|
|
export BROWSER='open'
|
|
|
|
|
2015-12-22 02:41:21 -08:00
|
|
|
# Editors
|
2015-12-17 02:31:29 -08:00
|
|
|
export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim')
|
|
|
|
export VISUAL=$EDITOR
|
2015-11-25 14:28:31 -08:00
|
|
|
export PAGER='less'
|
2015-12-22 02:41:21 -08:00
|
|
|
|
2015-11-25 14:28:31 -08:00
|
|
|
# export CC=/usr/bin/clang
|
|
|
|
# export CXX=/usr/bin/clang++
|
|
|
|
# export CXXFLAGS="-I/usr/local/include"
|
|
|
|
export C_INCLUDE_PATH="/usr/local/include"
|
|
|
|
export CPLUS_INCLUDE_PATH="/usr/local/include"
|
|
|
|
export LIBRARY_PATH="/usr/local/lib"
|
|
|
|
# export LDFLAGS="-L/usr/local/lib"
|
|
|
|
|
2015-12-20 20:39:11 -08:00
|
|
|
export LESS='-F -g -i -M -R -S -w -z-4'
|
2015-12-22 02:41:21 -08:00
|
|
|
if is-callable lesspipe; then
|
2015-11-25 14:28:31 -08:00
|
|
|
export LESSOPEN='| /usr/bin/env lesspipe %s 2>&-'
|
2014-03-29 14:56:33 -07:00
|
|
|
fi
|
2014-09-20 13:38:40 -07:00
|
|
|
|
2015-11-25 14:28:31 -08:00
|
|
|
# Temporary Files
|
|
|
|
if [[ ! -d "$TMPDIR" ]]; then
|
|
|
|
export TMPDIR="/tmp/$USER"
|
|
|
|
mkdir -p -m 700 "$TMPDIR"
|
|
|
|
fi
|
|
|
|
|
|
|
|
TMPPREFIX="${TMPDIR%/}/zsh"
|
|
|
|
[[ ! -d "$TMPPREFIX" ]] && mkdir -p "$TMPPREFIX"
|
|
|
|
|
|
|
|
[[ -z "$LANG" ]] && export LANG='en_US.UTF-8'
|
|
|
|
|
2015-12-20 20:39:11 -08:00
|
|
|
autoload -U colors && colors
|