system/scripts/him.sh

24 lines
383 B
Bash
Executable file

#!/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
;;
"watch")
while true
do
printf '\033[2J'
$0 list
sleep 10
done
;;
esac