|
|
|
@ -59,20 +59,21 @@ if [[ ! -d $HOME/.zsh ]]; then
|
|
|
|
|
popd |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Install zsh-syntax-highlighting if it doesn't exist |
|
|
|
|
if [[ ! -d $HOME/.zsh/zsh-syntax-highlighting ]]; then |
|
|
|
|
if ! is-at-least 4.3.11; then |
|
|
|
|
echo "ZSH syntax highlighting requires ZSH >= 4.3.11 (current: $ZSH_VERSION)." |
|
|
|
|
else |
|
|
|
|
echo "Installing zsh syntax highlighting" |
|
|
|
|
pushd |
|
|
|
|
autoload -U is-at-least |
|
|
|
|
|
|
|
|
|
cd $HOME/.zsh |
|
|
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git |
|
|
|
|
# Install zsh-syntax-highlighting if it doesn't exist |
|
|
|
|
if is-at-least 4.3.11; then |
|
|
|
|
if [[ ! -d $HOME/.zsh/zsh-syntax-highlighting ]]; then |
|
|
|
|
echo "Installing zsh syntax highlighting" |
|
|
|
|
pushd |
|
|
|
|
|
|
|
|
|
popd |
|
|
|
|
fi |
|
|
|
|
cd $HOME/.zsh |
|
|
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git |
|
|
|
|
|
|
|
|
|
popd |
|
|
|
|
fi |
|
|
|
|
else |
|
|
|
|
echo "ZSH syntax highlighting requires ZSH >= 4.3.11 (current: $ZSH_VERSION)." |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
zstyle ':completion:*:*:git:*' script $HOME/.zsh/git-completion.bash |
|
|
|
|