summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-05-16 09:15:27 +0200
committerFlorian Pritz <bluewind@xinu.at>2019-07-06 14:19:22 +0200
commitc78fd9b59583d2549ab8fdb33af6f054442531e4 (patch)
treea71be43a9cf0b1c6586882ca97766a00754e267e
parent5a3b7d76ea4d9a589fa0a1d5d87532fded9f78bd (diff)
downloaddotfiles-c78fd9b59583d2549ab8fdb33af6f054442531e4.tar.gz
dotfiles-c78fd9b59583d2549ab8fdb33af6f054442531e4.tar.xz
zshrc: Guard .zshrc.local
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.zshrc6
1 files 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