]> git.armaanb.net Git - config.org.git/commitdiff
zsh: add last updated date to plan
authorArmaan Bhojwani <me@armaanb.net>
Tue, 20 Apr 2021 14:33:25 +0000 (10:33 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Tue, 20 Apr 2021 14:40:25 +0000 (10:40 -0400)
config.org

index 63ca6ff178b99b4fded0502109678d60feb8f6cc..8df8146f1c734cfb0cb9124f9e9aa5f4a4fef56e 100644 (file)
@@ -1097,8 +1097,11 @@ If no command given, =ls=, if in a Git repo, =git status= as well.
   alias gpp='gpg --keyserver keyserver.ubuntu.com --recv-key'
   alias plan='T=$(mktemp) && \
         rsync root@armaanb.net:/etc/finger/plan.txt "$T" && \
-        vim $T && \
-        rsync "$T" root@armaanb.net:/etc/finger/plan.txt'
+        TT=$(mktemp) && \
+        head -n -2 $T > $TT && \
+        vim $TT && \
+        echo "\nLast updated: $(date -R)" >> "$TT" && \
+        rsync "$TT" root@armaanb.net:/etc/finger/plan.txt'
   alias wttr='curl -s "wttr.in/02445?n" | head -n -3'
 #+end_src
 **** Other