From 5e5fec58dbe7b772ad3f5d3f56e44549a0391a3d Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Wed, 21 Apr 2021 17:08:29 +0200 Subject: [PATCH] Do not load zshsecrets if it does not exist --- zshenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshenv b/zshenv index 994e4c3..1f2a6e4 100644 --- a/zshenv +++ b/zshenv @@ -28,6 +28,8 @@ export BAT_THEME=Nord export PGUSER=postgres # See `installdotfiles`: -source "$ZDOTDIR/.zshsecrets" +if [ -f ¨$ZDOTDIR/.zshsecrets¨ ]; then + source "$ZDOTDIR/.zshsecrets" +fi source "$HOME/.cargo/env"