Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (36 sloc) 1.39 KB
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export PATH="$HOME/bin:$PATH"
function export_path_if_exists { [[ -d "$1" ]] && export PATH="$1:$PATH" }
export GOPATH=$HOME
export_path_if_exists "$GOPATH/bin"
export_path_if_exists "$HOME/.rbenv/bin" && eval "$(rbenv init --no-rehash - zsh)"
export_path_if_exists "$HOME/.plenv/bin" && eval "$(plenv init -)"
export_path_if_exists "$HOME/mysql-build/bin"
export_path_if_exists /usr/local/share/git-core/contrib/workdir
export_path_if_exists /usr/local/share/git-core/contrib/diff-highlight
export_path_if_exists /usr/local/share/npm/bin && {
export NODE_PATH="/usr/local/share/npm/lib/node_modules"
}
if [ -d /usr/local/lib/pkgconfig ]; then
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
fi
if type bundle > /dev/null; then
alias be='bundle exec'
fi
if type hub > /dev/null; then
eval "$(hub alias -s zsh)"
fi
if [ "Darwin" = "$(uname)" ]; then
if [ -x /usr/libexec/java_home ]; then
export JAVA_HOME="$(/usr/libexec/java_home)"
export_path_if_exists "$JAVA_HOME/bin"
fi
export_path_if_exists "/usr/local/opt/coreutils/libexec/gnubin"
export RUBY_CONFIGURE_OPTS="--with-readline-dir=/usr/local/opt/readline --with-openssl-dir=/usr/local/opt/openssl"
fi
export LANG='ja_JP.UTF-8'
export EDITOR='vim'
export PAGER='less'
export LESS='-R -g -j10 --no-init --quit-if-one-screen'
disable r