diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-10 21:18:36 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-10 21:18:36 +1200 |
commit | b1b6bf033623f001dffac1e1a802799dcd5c1837 (patch) | |
tree | e4fcf47d549ca984e4e83930a33376505a8d6339 | |
parent | A start on a Subversion configuration (diff) | |
download | dotfiles-b1b6bf033623f001dffac1e1a802799dcd5c1837.tar.gz dotfiles-b1b6bf033623f001dffac1e1a802799dcd5c1837.zip |
Check for ~/.reminders
-rw-r--r-- | bash/bash_profile.d/remind.bash | 6 |
1 files changed, 4 insertions, 2 deletions
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) |