]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Run rem on startup and after every four hours.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index bde815db99c367266538a60094a49c6abd10a6e8..bab6a06f7c0db052817aa769a0e8c2955847dcbf 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -617,7 +617,7 @@ source_config ~/.zsh/rc.local
 # RUN COMMANDS
 
 # If not already in screen reattach to a running session or create a new one.
-# This also starts screen one a remote server when connecting through ssh.
+# This also starts screen on a remote server when connecting through ssh.
 if [[ $TERM != dumb && $TERM != linux && -z $STY ]]; then
     # Get running detached sessions.
     session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
@@ -634,6 +634,12 @@ if [[ $TERM != dumb && $TERM != linux && -z $STY ]]; then
     fi
 fi
 
+# Run reminder and redisplay it every four hours (if it's available).
+PERIOD=14400
+periodic() {
+    which rem > /dev/null && rem
+}
+
 
 source_debug ". ~/.zsh/rc (done)"