From baa3ce0c68e283791275162259112634d6fbb401 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Sat, 1 Sep 2018 20:45:42 +0200 Subject: Add ZSH on-the-fly highlighting. --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'setup.sh') 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 } # -- cgit v1.2.3-70-g09d2