system/scripts/him.sh

25 lines
383 B
Bash
Raw Normal View History

#!/bin/bash
case $1 in
"" | "list")
bin=~/repos/himalaya/target/release
for acc in $(NO_COLOR=1 $bin/himalaya accounts | grep imap | awk '{ print $1 }')
do
echo "account: $acc"
$bin/himalaya -a "$acc" list
echo "---"
done
;;
2022-04-25 09:57:09 +03:00
"watch")
while true
do
printf '\033[2J'
$0 list
sleep 10
done
;;
esac