From ec63bd4486295230b54aa3352f2d8284f854c510 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 21 Mar 2022 08:20:30 +0100 Subject: [PATCH] Add kjsonlogs --- dot_config/fish/private_functions/kjsonlogs.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 dot_config/fish/private_functions/kjsonlogs.fish diff --git a/dot_config/fish/private_functions/kjsonlogs.fish b/dot_config/fish/private_functions/kjsonlogs.fish new file mode 100644 index 0000000..ce2a58d --- /dev/null +++ b/dot_config/fish/private_functions/kjsonlogs.fish @@ -0,0 +1,3 @@ +function kjsonlogs +klogs $argv -o raw | jq -r -R 'fromjson? | select(type == "object") | "\(.time) \(.levelname) \(.message)"' +end