remove zprofile, enable syntax highlighting

This commit is contained in:
Martin Sekera 2020-04-03 14:02:37 +02:00
parent 922813b764
commit d108a398d4
2 changed files with 9 additions and 19 deletions

View file

@ -1,19 +0,0 @@
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}
umask 022
export PATH="/home/${USER}/Apps/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
# these do more harm than good
unset TERMCAP
unset MANPATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Load ls_colors
eval "$(dircolors -b)"

View file

@ -265,3 +265,12 @@ bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line bindkey "\eOF" end-of-line
bindkey "\eOd" backward-word bindkey "\eOd" backward-word
bindkey "\eOc" forward-word bindkey "\eOc" forward-word
# load syntax highlighting if available; Gentoo and Arch paths are tried
for HPATH in "/usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh" "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
do
if [[ -e "${HPATH}" ]]; then
source "${HPATH}"
break
fi
done