aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetup.sh7
-rw-r--r--zshrc13
2 files changed, 19 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index 173103c..7138034 100755
--- a/setup.sh
+++ b/setup.sh
@@ -123,6 +123,7 @@ install_oh_my_zsh()
local tools_dir="${1}"; shift;
local install_dir="${1}"; shift;
local link_path="${install_dir}/.oh-my-zsh";
+ local plugins_dir="${tools_dir}/oh-my-zsh/custom/plugins";
if [ ! -h "${link_path}" -o ! -d "${link_path}" ];
then
@@ -136,6 +137,12 @@ install_oh_my_zsh()
"${tools_dir}/oh-my-zsh" \
"${install_dir}/config/oh-my-zsh"
fi
+
+ if [ ! -d "${plugins_dir}/zsh-syntax-highlighting" ]
+ then
+ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
+ "${plugins_dir}/zsh-syntax-highlighting"
+ fi
}
#
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"