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;