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