From 69dabe5a87f556505b6dd05ea2250df293b4889b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 10 Jun 2015 10:44:18 +1200 Subject: Instate .bash_profile.d Stuff that prints messages really only needs to be done for my primary login shell --- bash/bash_profile.d/remind.bash | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bash/bash_profile.d/remind.bash (limited to 'bash/bash_profile.d/remind.bash') diff --git a/bash/bash_profile.d/remind.bash b/bash/bash_profile.d/remind.bash new file mode 100644 index 00000000..50a3d8c8 --- /dev/null +++ b/bash/bash_profile.d/remind.bash @@ -0,0 +1,8 @@ +# If interactive and rem(1) installed, run it +if [[ $- == *i* ]] && hash rem 2>/dev/null ; then ( + printf '\n' + while read -r reminder ; do + printf '* %s\n' "$reminder" + done < <(rem -hq) +) ; fi + -- cgit v1.2.3