From: linux-vm Date: Sun, 22 Jan 2017 07:00:40 +0000 (+0800) Subject: fix installation issue, check zsh syntax first X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=5a819177317f261611169ee768a781e2f38bd9c0;p=dotfiles.git fix installation issue, check zsh syntax first --- 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