From: Armaan Bhojwani Date: Tue, 20 Apr 2021 14:33:25 +0000 (-0400) Subject: zsh: add last updated date to plan X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=commitdiff_plain;h=baaa106683a272bd49424241cd786508fde5536f zsh: add last updated date to plan --- diff --git a/config.org b/config.org index 63ca6ff..8df8146 100644 --- a/config.org +++ b/config.org @@ -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