aboutsummaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2018-09-01 20:45:42 +0200
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2018-09-01 20:45:42 +0200
commitbaa3ce0c68e283791275162259112634d6fbb401 (patch)
tree0c919fc6450d501862b283eee3444b4b5e0848dc /zshrc
parent9970124cc496a05f278cc17a3fb328a064c4fc2b (diff)
downloaddotfiles-baa3ce0c68e283791275162259112634d6fbb401.tar.gz
dotfiles-baa3ce0c68e283791275162259112634d6fbb401.tar.bz2
dotfiles-baa3ce0c68e283791275162259112634d6fbb401.zip
Add ZSH on-the-fly highlighting.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index e9cbd48..2eae702 100644
--- a/zshrc
+++ b/zshrc
@@ -2,9 +2,20 @@
# -----------------------------------------------------------------------------
ZSH="${HOME}/.local/tools/oh-my-zsh"
ZSH_THEME="nanotech"
-plugins=(git archlinux gnu-utils pip python ssh-agent)
+plugins=(git archlinux gnu-utils pip python ssh-agent zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
+# Highlighting configuration
+ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
+ZSH_HIGHLIGHT_STYLES[alias]=none
+ZSH_HIGHLIGHT_STYLES[builtin]=none
+ZSH_HIGHLIGHT_STYLES[command]=none
+ZSH_HIGHLIGHT_STYLES[hashed-command]=none
+ZSH_HIGHLIGHT_STYLES[function]=fg=034,bold
+ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=105
+ZSH_HIGHLIGHT_STYLES[path]=none
+ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=yellow,bold}
+
source "${HOME}/.local/config/aliases"
source "${HOME}/.config/user-dirs.dirs"