helm/zshenv

71 lines
1.6 KiB
Plaintext
Raw Normal View History

2015-12-20 20:39:11 -08:00
source $HOME/.dotfiles/.common.sh
## 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-22 02:41:21 -08:00
# OSX Only
if [[ -x /usr/libexec/path_helper ]]; then
eval $(/usr/libexec/path_helper -s)
fi
path=(
2015-12-22 02:41:21 -08:00
$DOTFILES/{bin,scripts}
2015-12-22 23:23:09 -08:00
$DOTFILES/tmux/tmuxifier/bin
2015-12-22 02:41:21 -08:00
$HOME/.{rb,py}env/bin
$HOME/bin
$GOPATH/bin
$ANDROID_HOME/platform-tools
$ANDROID_HOME/tools
/Library/TeX/texbin
$path
)
2015-12-20 20:39:11 -08:00
local FUNC_DIR="$DOTFILES/zsh/functions"
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>&-'
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