feat(mail): new mail sub command

This commit is contained in:
Ayo Ayco 2025-07-05 11:54:04 +02:00
parent ed0fcae79b
commit b023670c13
2 changed files with 22 additions and 1 deletions

5
ayo.sh
View file

@ -66,6 +66,9 @@ case $1 in
## SCRIPTS ## SCRIPTS
m | mail)
. ${scripts_dir}/mail.sh $2 $3 $4 $5 $6 $7 $8 $9
;;
d | display) d | display)
. ${scripts_dir}/display.sh $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/display.sh $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
@ -87,7 +90,7 @@ case $1 in
c | config) c | config)
echo 'Config script in-progress' echo 'Config script in-progress'
;; ;;
m | mac) vm | mac)
quickemu --vm ${HOME}/macos-monterey.conf --width 1920 --height 1080 quickemu --vm ${HOME}/macos-monterey.conf --width 1920 --height 1080
;; ;;
ms) ms)

18
mail.sh Executable file
View file

@ -0,0 +1,18 @@
#! /usr/bin/bash
## mail automation / management
# Load config
. ${HOME}/ayo.conf
. ${scripts_dir}/functions.sh
# TODO: write log for echoes with >>>
command=$1
if [ "$1" = "task" ] || [ "$1" = "t" ]; then
read -p "Task:" task
mutt -s task things
else
mutt $1 $2 $3 $4 $5
fi