From f1a1761f59559c32ed71606d829a95d038aac5f4 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 21 Jun 2015 22:35:33 +0200 Subject: [PATCH] Adding conditions for sourcing files. --- zshrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index a418f2e..9c2de3b 100644 --- a/zshrc +++ b/zshrc @@ -82,7 +82,13 @@ bindkey -M vicmd 'j' history-beginning-search-forward bindkey '^?' backward-delete-char bindkey '^h' backward-delete-char -source /usr/share/doc/pkgfile/command-not-found.zsh +if [ -f /usr/share/doc/pkgfile/command-not-found.zsh ] +then + source /usr/share/doc/pkgfile/command-not-found.zsh +fi -# Automatically source virtualenv -source /usr/bin/virtualenvwrapper_lazy.sh +if [ -f /usr/bin/virtualenvwrapper_lazy.sh ] +then + # Automatically source virtualenv + source /usr/bin/virtualenvwrapper_lazy.sh +fi