1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

nushell: add today command

This commit is contained in:
RGBCube 2025-06-07 22:59:25 +03:00
parent f2702acf46
commit 8bea87cf0d
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -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