Make zshenv logic more concise
This commit is contained in:
parent
3f62797a2f
commit
654cd21eda
22
zshenv
22
zshenv
@ -18,23 +18,19 @@ LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
|
||||
fpath+=$HOME/.local/share/zsh/site-functions
|
||||
|
||||
# Add ccache to the PATH if present
|
||||
if [ -f /usr/bin/ccache ]; then
|
||||
PATH=/usr/lib/ccache:$PATH
|
||||
fi
|
||||
[ -f /usr/bin/ccache ] && PATH=/usr/lib/ccache:$PATH
|
||||
|
||||
# Use ~/.local for pip installs on macOS
|
||||
if [ "`uname`" = "Darwin" ]; then
|
||||
export PYTHONUSERBASE=$HOME/.local
|
||||
fi
|
||||
[ "`uname`" = "Darwin" ] && export PYTHONUSERBASE=$HOME/.local
|
||||
|
||||
# Change colors used by less and man
|
||||
export LESS_TERMCAP_mb=$(printf "\e[0;31m")
|
||||
export LESS_TERMCAP_md=$(printf "\e[0;36m")
|
||||
export LESS_TERMCAP_me=$(printf "\e[0m")
|
||||
export LESS_TERMCAP_so=$(printf "\e[1;40;32m")
|
||||
export LESS_TERMCAP_se=$(printf "\e[0m")
|
||||
export LESS_TERMCAP_us=$(printf "\e[0;34m")
|
||||
export LESS_TERMCAP_ue=$(printf "\e[0m")
|
||||
export LESS_TERMCAP_mb=`printf "\e[0;31m"`
|
||||
export LESS_TERMCAP_md=`printf "\e[0;36m"`
|
||||
export LESS_TERMCAP_me=`printf "\e[0m"`
|
||||
export LESS_TERMCAP_so=`printf "\e[1;40;32m"`
|
||||
export LESS_TERMCAP_se=`printf "\e[0m"`
|
||||
export LESS_TERMCAP_us=`printf "\e[0;34m"`
|
||||
export LESS_TERMCAP_ue=`printf "\e[0m"`
|
||||
|
||||
# Disable virtualenv prompt
|
||||
VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user