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 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
|
2016-02-13 01:26:57 -08:00
|
|
|
eval $(/usr/libexec/path_helper -s)
|
2015-12-22 02:41:21 -08:00
|
|
|
fi
|
2015-12-17 11:32:00 -08:00
|
|
|
path=(
|
2016-06-06 16:57:49 -07:00
|
|
|
./node_modules/.bin
|
2016-02-13 01:26:57 -08:00
|
|
|
$DOTFILES/{bin,scripts}
|
2016-02-25 21:11:30 -08:00
|
|
|
$HOME/.tmuxifier/bin
|
2016-02-13 01:26:57 -08:00
|
|
|
$HOME/.{rb,py}env/{bin,shims}
|
2016-02-29 23:07:31 -08:00
|
|
|
$HOME/.composer/vendor/bin
|
2016-02-13 01:26:57 -08:00
|
|
|
$HOME/bin
|
|
|
|
$GOPATH/bin
|
|
|
|
$ANDROID_HOME/platform-tools
|
|
|
|
$ANDROID_HOME/tools
|
2016-04-03 19:32:55 -07:00
|
|
|
/usr/local/{,s}bin
|
2016-02-13 01:26:57 -08:00
|
|
|
$path
|
2015-12-17 11:32:00 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
fpath=(
|
2016-04-14 09:56:28 -07:00
|
|
|
~/.zsh/completions
|
2015-12-17 11:32:00 -08:00
|
|
|
$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-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
|