From 5a819177317f261611169ee768a781e2f38bd9c0 Mon Sep 17 00:00:00 2001 From: linux-vm Date: Sun, 22 Jan 2017 15:00:40 +0800 Subject: [PATCH] fix installation issue, check zsh syntax first --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 3c07c11..d8f77ff 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -196,7 +196,7 @@ git_prompt_string() { RPS1='$(git_prompt_string)' #source ~/Private/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh -source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +[[ -f "~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] && source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # http://stackoverflow.com/questions/3483604/which-shortcut-in-zsh-does-the-same-as-ctrl-u-in-bash bindkey \^U backward-kill-line -- 2.11.0