From 2bb9010d2e613206ce3d476dbea81eb9a56f3c66 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Sat, 24 Aug 2019 16:19:46 +0700 Subject: Fix: check that scripts exist before running them --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 5098b24..2ba2d1f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -76,8 +76,8 @@ fi # python virtualenvwrapper export WORKON_HOME=~/.virtualenvs -source /usr/bin/virtualenvwrapper_lazy.sh +[[ -e /usr/bin/virtualenvwrapper_lazy.sh ]] && source /usr/bin/virtualenvwrapper_lazy.sh alias ec="emacsclient -c" -source /usr/share/doc/pkgfile/command-not-found.zsh +[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh -- cgit v1.2.3