mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
nushell: add today command
This commit is contained in:
parent
f2702acf46
commit
8bea87cf0d
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ def copy []: string -> nothing {
|
||||||
print --no-newline $"(ansi osc)52;c;($in | encode base64)(ansi st)"
|
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 {
|
def --env mc [path: path]: nothing -> nothing {
|
||||||
mkdir $path
|
mkdir $path
|
||||||
cd $path
|
cd $path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue