Make zshenv logic more concise

This commit is contained in:
Kenneth Benzie 2017-11-30 09:50:10 +00:00
parent 3f62797a2f
commit 654cd21eda

22
zshenv
View File

@ -18,23 +18,19 @@ LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
fpath+=$HOME/.local/share/zsh/site-functions fpath+=$HOME/.local/share/zsh/site-functions
# Add ccache to the PATH if present # Add ccache to the PATH if present
if [ -f /usr/bin/ccache ]; then [ -f /usr/bin/ccache ] && PATH=/usr/lib/ccache:$PATH
PATH=/usr/lib/ccache:$PATH
fi
# Use ~/.local for pip installs on macOS # Use ~/.local for pip installs on macOS
if [ "`uname`" = "Darwin" ]; then [ "`uname`" = "Darwin" ] && export PYTHONUSERBASE=$HOME/.local
export PYTHONUSERBASE=$HOME/.local
fi
# Change colors used by less and man # Change colors used by less and man
export LESS_TERMCAP_mb=$(printf "\e[0;31m") export LESS_TERMCAP_mb=`printf "\e[0;31m"`
export LESS_TERMCAP_md=$(printf "\e[0;36m") export LESS_TERMCAP_md=`printf "\e[0;36m"`
export LESS_TERMCAP_me=$(printf "\e[0m") export LESS_TERMCAP_me=`printf "\e[0m"`
export LESS_TERMCAP_so=$(printf "\e[1;40;32m") export LESS_TERMCAP_so=`printf "\e[1;40;32m"`
export LESS_TERMCAP_se=$(printf "\e[0m") export LESS_TERMCAP_se=`printf "\e[0m"`
export LESS_TERMCAP_us=$(printf "\e[0;34m") export LESS_TERMCAP_us=`printf "\e[0;34m"`
export LESS_TERMCAP_ue=$(printf "\e[0m") export LESS_TERMCAP_ue=`printf "\e[0m"`
# Disable virtualenv prompt # Disable virtualenv prompt
VIRTUAL_ENV_DISABLE_PROMPT=1 VIRTUAL_ENV_DISABLE_PROMPT=1