From 734dd69bc52b1376ee770d1de072861bdce4d7ae Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 2 Mar 2025 14:54:52 +0100 Subject: [PATCH] fish_greeting: cat todo.txt only if file exists --- fish_cfg/functions/fish_greeting.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fish_cfg/functions/fish_greeting.fish b/fish_cfg/functions/fish_greeting.fish index 7e3f78b..bed16fa 100644 --- a/fish_cfg/functions/fish_greeting.fish +++ b/fish_cfg/functions/fish_greeting.fish @@ -3,5 +3,9 @@ function fish_greeting # nagios_status # - echo; echo; cat ~/todo.txt + if test -f ~/todo.txt + echo + echo + cat ~/todo.txt + end end