From 8bea87cf0dd796d435201565be95eb9fe9c5252d Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 7 Jun 2025 22:59:25 +0300 Subject: [PATCH] nushell: add today command --- modules/common/nushell/environment.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/nushell/environment.nu b/modules/common/nushell/environment.nu index d92b1f8..acced7d 100644 --- a/modules/common/nushell/environment.nu +++ b/modules/common/nushell/environment.nu @@ -11,6 +11,10 @@ def copy []: string -> nothing { print --no-newline $"(ansi osc)52;c;($in | encode base64)(ansi st)" } +def today []: nothing -> string { + date now | format date "%Y-%m-%d" +} + def --env mc [path: path]: nothing -> nothing { mkdir $path cd $path