helm/zshenv
2015-12-20 23:39:11 -05:00

68 lines
1.5 KiB
Bash

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
# Set the list of directories that Zsh searches for programs.
path=(
$DOTFILES/{bin,scripts}
$HOME/.{rb,py}env/bin
$GOPATH/bin
$ANDROID_HOME/platform-tools
$ANDROID_HOME/tools
/Library/TeX/texbin
/usr/local/{bin,sbin}
/usr/{bin,sbin}
/{bin,sbin}
$path
)
local FUNC_DIR="$DOTFILES/zsh/functions"
fpath=(
~/.zsh/completion
"$FUNC_DIR"
$fpath
)
# Browser
export BROWSER='open'
## Editors
export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim')
export VISUAL=$EDITOR
export PAGER='less'
export RUBYOPT=rubygems
# 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"
export LESS='-F -g -i -M -R -S -w -z-4'
if (( $+commands[lesspipe] )); then
export LESSOPEN='| /usr/bin/env lesspipe %s 2>&-'
fi
# 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'
autoload -U colors && colors