aboutsummaryrefslogblamecommitdiff
path: root/bash/bash_profile.d/remind.bash
blob: d006bb20c6a7846ddd2ddc0c5dedf6fea953f0c7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                             

                                   
               
 
 
# Only if shell is interactive
[[ $- == *i* ]] || return

# Only if rem(1) available
hash rem 2>/dev/null || return

# Only if $HOME/.reminders exists
[[ -e $HOME/.reminders ]] || return

# Print from subshell to keep namespace clean
(
    while IFS= read -r reminder ; do
        printf '* %s\n' "$reminder"
    done < <(rem -hq)
    printf '\n'
)