From b1b6bf033623f001dffac1e1a802799dcd5c1837 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 10 Jun 2015 21:18:36 +1200 Subject: Check for ~/.reminders --- bash/bash_profile.d/remind.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bash') diff --git a/bash/bash_profile.d/remind.bash b/bash/bash_profile.d/remind.bash index 7188c639..3f9908a0 100644 --- a/bash/bash_profile.d/remind.bash +++ b/bash/bash_profile.d/remind.bash @@ -1,5 +1,7 @@ -# If interactive and rem(1) installed, run it -if [[ $- == *i* ]] && hash rem 2>/dev/null ; then ( +# If interactive, ~/.reminders, and rem(1), run it +if [[ $- == *i* ]] && \ + [[ -e $HOME/.reminders ]] && \ + hash rem 2>/dev/null ; then ( while read -r reminder ; do printf '* %s\n' "$reminder" done < <(rem -hq) -- cgit v1.2.3