aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2019-08-24 16:19:46 +0700
committerPeter Son Struschka <me@peter-struschka.com>2019-08-24 16:19:46 +0700
commit2bb9010d2e613206ce3d476dbea81eb9a56f3c66 (patch)
tree211bd6729a0909788a37fbda841d7debcfcef7ca /zsh/.zshrc
parent4d099cffcd4a59651a0c77808ae40c4b2ca67d9d (diff)
downloaddotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.tar.gz
dotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.tar.bz2
dotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.tar.lz
dotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.tar.xz
dotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.tar.zst
dotfiles-2bb9010d2e613206ce3d476dbea81eb9a56f3c66.zip
Fix: check that scripts exist before running them
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc4
1 files changed, 2 insertions, 2 deletions
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