aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_profile.d/remind.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-20 00:43:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-20 01:21:09 +1200
commit1ce0e2ad424bf38768094488774eff23b3871ccc (patch)
treeb9d407b2fb7729456ce554d4d610a194447ad737 /bash/bash_profile.d/remind.bash
parentUse terser shell for executable installs (diff)
downloaddotfiles-1ce0e2ad424bf38768094488774eff23b3871ccc.tar.gz
dotfiles-1ce0e2ad424bf38768094488774eff23b3871ccc.zip
Port all bash_profile.d scripts to POSIX sh
Also require flag files in ~/.welcome for displaying or not displaying login stuff
Diffstat (limited to 'bash/bash_profile.d/remind.bash')
-rw-r--r--bash/bash_profile.d/remind.bash22
1 files changed, 0 insertions, 22 deletions
diff --git a/bash/bash_profile.d/remind.bash b/bash/bash_profile.d/remind.bash
deleted file mode 100644
index a8f14599..00000000
--- a/bash/bash_profile.d/remind.bash
+++ /dev/null
@@ -1,22 +0,0 @@
-# Only if shell is interactive
-if [[ $- != *i* ]] ; then
- return
-fi
-
-# Only if rem(1) available
-if ! hash rem 2>/dev/null ; then
- return
-fi
-
-# Only if reminders file exists
-if [[ ! -e ${DOTREMINDERS:-$HOME/.reminders} ]] ; then
- return
-fi
-
-# Print from subshell to keep namespace clean
-(
- while IFS= read -r reminder ; do
- printf '* %s\n' "$reminder"
- done < <(rem -hq)
- printf '\n'
-)