aboutsummaryrefslogtreecommitdiffstats
path: root/setup.sh
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 /setup.sh
parent9970124cc496a05f278cc17a3fb328a064c4fc2b (diff)
downloaddotfiles-baa3ce0c68e283791275162259112634d6fbb401.tar.gz
dotfiles-baa3ce0c68e283791275162259112634d6fbb401.tar.bz2
dotfiles-baa3ce0c68e283791275162259112634d6fbb401.zip
Add ZSH on-the-fly highlighting.
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh7
1 files changed, 7 insertions, 0 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
}
#