aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-07-20 13:27:49 -0400
committerDaniel <[email protected]>2024-07-20 13:27:49 -0400
commit48312114028b1f1f61694cbc51d189372ad94229 (patch)
tree6921c11809ec44bb25272c1d40c2ed485fc89706
parenteb630970b5631c9bd161d952d5ced2e076494041 (diff)
check mail script
-rwxr-xr-xbin/.local/bin/scripts/checkmail8
-rw-r--r--shell/.bash_aliases2
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/.local/bin/scripts/checkmail b/bin/.local/bin/scripts/checkmail
new file mode 100755
index 0000000..2b7dad1
--- /dev/null
+++ b/bin/.local/bin/scripts/checkmail
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+mbsync -a
+notmuch new
+
+# logging
+LOG_FILE="$HOME/.cache/checkmail"
+echo "Last mail sync at $(date)" >> $LOG_FILE
diff --git a/shell/.bash_aliases b/shell/.bash_aliases
index 5b34a68..d11efd7 100644
--- a/shell/.bash_aliases
+++ b/shell/.bash_aliases
@@ -11,6 +11,8 @@ alias rec="ffmpeg -f x11grab -s 1920x1080 -i :0.0+0+0 out.mp4"
alias image-date="find \"$1\/\" -type f -exec ls -t {} + | nsxiv -i -t"
+alias checkmail="$HOME/.local/bin/scripts/checkmail"
+
# directory aliases
# cd into the previous working directory by omitting `cd`.
alias ..='cd ..'