zsh: change some file path
authorPeng Li <seudut@gmail.com>
Thu, 25 Dec 2014 18:17:07 +0000 (02:17 +0800)
committerPeng Li <seudut@gmail.com>
Thu, 25 Dec 2014 18:17:07 +0000 (02:17 +0800)
zsh/zshrc

index 758863f..9f1a748 100644 (file)
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -194,14 +194,15 @@ git_prompt_string() {
 RPS1='$(git_prompt_string)'
 
 #source ~/Private/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
 RPS1='$(git_prompt_string)'
 
 #source ~/Private/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
-source ~/Private/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
 
 export PYTHONSTARTUP="$HOME/.pythonrc"
 
 # http://stackoverflow.com/questions/3483604/which-shortcut-in-zsh-does-the-same-as-ctrl-u-in-bash
 bindkey \^U backward-kill-line
 
 export PYTHONSTARTUP="$HOME/.pythonrc"
 
-source $HOME/.cpverc
-source $HOME/.eccrc
+[[ -f "$HOME/.cpverc" ]] && . "$HOME/.cpverc"
+[[ -f "$HOME/.eccrc" ]] && . "$HOME/.eccrc"
+
 
 #` git log --oneline --abbrev-commit --all --graph --decorate --color `
 [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
 
 #` git log --oneline --abbrev-commit --all --graph --decorate --color `
 [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh