]> git.armaanb.net Git - asd-repo.git/commitdiff
kiss-mail: improve UI
authorArmaan Bhojwani <me@armaanb.net>
Mon, 22 Feb 2021 16:23:23 +0000 (11:23 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 22 Feb 2021 16:23:23 +0000 (11:23 -0500)
kiss-mail/checksums
kiss-mail/files/kiss-mail

index 1b4b91550c4e18b1d6564dce518fd2beb45c3efe..02f80d5327b8fa5d73af3baa67ba4f9635a061fb 100644 (file)
@@ -1 +1 @@
-a367d0c5599ccaf1b5fe9f7a65d23cfc8d87ff36759473ddd9aa91bd7aea0358
+eba6a230bdd16295f00bdd4df496656b1f3ed3f42c2a5b0e06294e1c4c9ef9be
index e6574b3489388cd9697f737efb424defd0528894..f2376888182ee87c8ed292327b30cad78f844cd4 100755 (executable)
@@ -7,16 +7,15 @@ get_mail() {
     git_root=$(git -C ${repo} rev-parse --show-toplevel)
     if [ -f ${git_root}/update ]; then
       shortlog=$(git -C ${git_root} log --pretty=oneline --follow -- update)
-      
       while IFS= read -r line; do
-        hash=$(echo ${line} | cut -d ' ' -f 1)
+        hash=$(printf ${line} | cut -d " " -f 1)
         git -C ${git_root} show ${hash}:update | tail -n +2 > /tmp/kiss-mail
 
-        printf '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n'
-        printf %s $((i = i + 1))
+        printf "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
+        printf "Item:   %s" $((i = i + 1))
         printf "\n"
-        git -C ${git_root} show -s ${hash}
-        printf '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n'
+        git -C ${git_root} show -s ${hash} | tail -n +2
+        printf "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
         /tmp/kiss-mail
         printf "\n\n"
 
@@ -27,5 +26,5 @@ EOF
   done
 }
 
-[ -z ${PAGER} ] || pager_l=${PAGER} && pager_l="less"
+[ -z ${PAGER} ] || pager_l=${PAGER} && pager_l="less -R"
 get_mail | ${pager_l}