From 2582b3796e6cf66547e9d88006fe892e5f61329c Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 9 Aug 2024 20:04:02 +0200 Subject: [PATCH] add command to find out when next the event is --- other/config.nu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/other/config.nu b/other/config.nu index c5ea054..8a95fc7 100644 --- a/other/config.nu +++ b/other/config.nu @@ -879,6 +879,16 @@ def typed [ mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done" } +def nev [ unit = day ] { + ( ( open Docs/dates.csv + | update datetime {|it| $it.datetime | into datetime } + | first + ).datetime - (date now) + ) + | into duration + | format duration $unit +} + alias gnix = cd ~/nix-configs; alias grepo = cd ~/Documents/repos; alias wh = wormhole-rs;