aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_profile.d/remind.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-10 10:44:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-10 10:44:18 +1200
commit69dabe5a87f556505b6dd05ea2250df293b4889b (patch)
treeffefcd8b0d4ac4d6d61beea8dd4ac67031f79b99 /bash/bash_profile.d/remind.bash
parentPrint verse(1) output on login but only once a day (diff)
downloaddotfiles-69dabe5a87f556505b6dd05ea2250df293b4889b.tar.gz
dotfiles-69dabe5a87f556505b6dd05ea2250df293b4889b.zip
Instate .bash_profile.d
Stuff that prints messages really only needs to be done for my primary login shell
Diffstat (limited to 'bash/bash_profile.d/remind.bash')
-rw-r--r--bash/bash_profile.d/remind.bash8
1 files changed, 8 insertions, 0 deletions
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
+