From cb9a0ae67bfc6a9b19fd024148ff2394758e2ca3 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 5 Sep 2022 12:08:56 +0100 Subject: welcome back fish on the x1 --- fish/functions/tj.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish/functions/tj.fish (limited to 'fish/functions/tj.fish') diff --git a/fish/functions/tj.fish b/fish/functions/tj.fish new file mode 100644 index 0000000..8c1caad --- /dev/null +++ b/fish/functions/tj.fish @@ -0,0 +1,7 @@ +function tj -d "Log to the daily journal - wrapper round _tj script" --argument-names 'message' + if test -n "$message" + echo "$message" | _tj + else + echo "Please give me your message, wrapped in quotes." + end +end -- cgit v1.2.3