From c78fd9b59583d2549ab8fdb33af6f054442531e4 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 16 May 2019 09:15:27 +0200 Subject: zshrc: Guard .zshrc.local Signed-off-by: Florian Pritz --- .zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index ad9401f..fdf3d28 100644 --- a/.zshrc +++ b/.zshrc @@ -762,8 +762,10 @@ compdef _cd_pkg cd-pkg umask 077 stty -ctlecho -# machine dependent stuff -source $HOME/.zshrc.local +if [[ -e $HOME/.zshrc.local ]]; then + # machine dependent stuff + source $HOME/.zshrc.local +fi if [[ -e $HOME/git/dotfiles/.zsh/zsh-syntax-highlighting-git/zsh-syntax-highlighting.zsh ]]; then source $HOME/git/dotfiles/.zsh/zsh-syntax-highlighting-git/zsh-syntax-highlighting.zsh -- cgit v1.2.3-24-g4f1b