From d732f16ec9ef8bd5effade39ce420b2720832bc1 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 21 Sep 2021 17:44:54 +0200 Subject: [PATCH] Only run jrnl when there is a journal --- .zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zprofile b/.zprofile index a2bb7d0..8d67f03 100644 --- a/.zprofile +++ b/.zprofile @@ -95,7 +95,7 @@ export CTEST_PARALLEL_LEVEL=3 export JOURNAL="$DATA/2-standards/notes/journal" -if test -z "${DISPLAY}" && test "${XDG_VTNR}" -eq 1 ; then +if test -z "${DISPLAY}" && test "$XDG_VTNR" -eq 1 && test -d "$JOURNAL"; then echo "What do you want to do?" while test $(echo "$intention" | wc -c) -lt 6 do read intention