zsh: handle path building better
This commit is contained in:
parent
1ef89f365d
commit
f0ac8cc256
16
zshenv
16
zshenv
|
@ -10,18 +10,20 @@ export RUST_SRC_PATH=$HOME/Dropbox/lib/rust/src
|
||||||
export GOPATH=$HOME/Dropbox/work/go
|
export GOPATH=$HOME/Dropbox/work/go
|
||||||
export ANDROID_HOME=/usr/local/opt/android-sdk
|
export ANDROID_HOME=/usr/local/opt/android-sdk
|
||||||
export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2
|
export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2
|
||||||
|
export RUBYOPT=rubygems
|
||||||
|
|
||||||
# Set the list of directories that Zsh searches for programs.
|
# OSX Only
|
||||||
|
if [[ -x /usr/libexec/path_helper ]]; then
|
||||||
|
eval $(/usr/libexec/path_helper -s)
|
||||||
|
fi
|
||||||
path=(
|
path=(
|
||||||
$DOTFILES/{bin,scripts}
|
$DOTFILES/{bin,scripts}
|
||||||
$HOME/.{rb,py}env/bin
|
$HOME/.{rb,py}env/bin
|
||||||
|
$HOME/bin
|
||||||
$GOPATH/bin
|
$GOPATH/bin
|
||||||
$ANDROID_HOME/platform-tools
|
$ANDROID_HOME/platform-tools
|
||||||
$ANDROID_HOME/tools
|
$ANDROID_HOME/tools
|
||||||
/Library/TeX/texbin
|
/Library/TeX/texbin
|
||||||
/usr/local/{bin,sbin}
|
|
||||||
/usr/{bin,sbin}
|
|
||||||
/{bin,sbin}
|
|
||||||
$path
|
$path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -35,11 +37,11 @@ fpath=(
|
||||||
# Browser
|
# Browser
|
||||||
export BROWSER='open'
|
export BROWSER='open'
|
||||||
|
|
||||||
## Editors
|
# Editors
|
||||||
export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim')
|
export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim')
|
||||||
export VISUAL=$EDITOR
|
export VISUAL=$EDITOR
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
export RUBYOPT=rubygems
|
|
||||||
# export CC=/usr/bin/clang
|
# export CC=/usr/bin/clang
|
||||||
# export CXX=/usr/bin/clang++
|
# export CXX=/usr/bin/clang++
|
||||||
# export CXXFLAGS="-I/usr/local/include"
|
# export CXXFLAGS="-I/usr/local/include"
|
||||||
|
@ -49,7 +51,7 @@ export LIBRARY_PATH="/usr/local/lib"
|
||||||
# export LDFLAGS="-L/usr/local/lib"
|
# export LDFLAGS="-L/usr/local/lib"
|
||||||
|
|
||||||
export LESS='-F -g -i -M -R -S -w -z-4'
|
export LESS='-F -g -i -M -R -S -w -z-4'
|
||||||
if (( $+commands[lesspipe] )); then
|
if is-callable lesspipe; then
|
||||||
export LESSOPEN='| /usr/bin/env lesspipe %s 2>&-'
|
export LESSOPEN='| /usr/bin/env lesspipe %s 2>&-'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue