Adding conditions for sourcing files.

This commit is contained in:
Faerbit 2015-06-21 22:35:33 +02:00
parent f01659eb84
commit f1a1761f59

12
zshrc
View File

@ -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