Add (mostly) ported zsh configuration
This commit is contained in:
36
zshenv
Normal file
36
zshenv
Normal file
@@ -0,0 +1,36 @@
|
||||
# Enable saving command history to file
|
||||
HISTFILE=$HOME/.histfile
|
||||
HISTSIZE=5000
|
||||
SAVEHIST=5000
|
||||
|
||||
# Enable time stats for long lasting commands
|
||||
REPORTTIME=5
|
||||
|
||||
# Add ~/.local to the environment
|
||||
PATH=$HOME/.local/bin:$PATH
|
||||
MANPATH=$HOME/.local/share/man:$MANPATH
|
||||
INFOPATH=$HOME/.local/share/info:$INFOPATH
|
||||
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
|
||||
|
||||
# Use ~/.local for pip installs on macOS
|
||||
if [ "`uname`" = "Darwin" ]; then
|
||||
export PYTHONUSERBASE=$HOME/.local
|
||||
fi
|
||||
|
||||
# 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")
|
||||
|
||||
# Disable virtualenv prompt
|
||||
VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||
Reference in New Issue
Block a user