From a14ce500f5198a2ab6330fa3c656399bcd1ac2c3 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 2 Mar 2022 05:21:05 -0800 Subject: [PATCH] add log: something to edit the system-log with --- .config/shell/functions/log | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/shell/functions/log diff --git a/.config/shell/functions/log b/.config/shell/functions/log new file mode 100644 index 0000000..e5d990f --- /dev/null +++ b/.config/shell/functions/log @@ -0,0 +1,6 @@ +#!/bin/bash + +# edit the system log located in the docs repo, but also find the docs repo based on what ~/todo points to +log() { + $EDITOR "$(git -C "$(dirname "$(realpath ~/todo)")" rev-parse --show-toplevel)/system-log" +}