fix installation issue, check zsh syntax first
[dotfiles.git] / zsh / zshrc
index c60e61d..d8f77ff 100644 (file)
--- 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
 
@@ -251,3 +251,24 @@ merge_logs() {
 }
 
 export MANPATH=$MANPATH:/usr/local/man
+
+
+## vim YouCompleteMe
+# https://github.com/Valloric/YouCompleteMe/issues/18
+#export DYLD_FORCE_FLAT_NAMESPACE=1
+
+## appended by cpan initializaion
+PATH="/Users/peli3/perl5/bin${PATH:+:${PATH}}"; export PATH;
+PERL5LIB="/Users/peli3/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
+PERL_LOCAL_LIB_ROOT="/Users/peli3/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
+PERL_MB_OPT="--install_base \"/Users/peli3/perl5\""; export PERL_MB_OPT;
+PERL_MM_OPT="INSTALL_BASE=/Users/peli3/perl5"; export PERL_MM_OPT;
+
+
+
+
+export MANPATH=$MANPATH:${HOME}/perl5/man
+
+export PATH=$PATH:"${HOME}/scripts"
+## hunspell path
+export DICPATH="/usr/local/share/hunspell/"