From d108a398d447556ade839565c452a96e1e535802 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Fri, 3 Apr 2020 14:02:37 +0200 Subject: [PATCH] remove zprofile, enable syntax highlighting --- etc/zsh/zprofile | 19 ------------------- etc/zsh/zshrc | 9 +++++++++ 2 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644 etc/zsh/zprofile diff --git a/etc/zsh/zprofile b/etc/zsh/zprofile deleted file mode 100644 index fdd3318..0000000 --- a/etc/zsh/zprofile +++ /dev/null @@ -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)" diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 796c07a..1bf6c2d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -265,3 +265,12 @@ bindkey "\eOH" beginning-of-line bindkey "\eOF" end-of-line bindkey "\eOd" backward-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