1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-14 17:21:01 +00:00
ncc/modules/common/nushell/environment.nu

23 lines
480 B
Text

$env.ENV_CONVERSIONS.PATH = {
from_string: {|string|
$string | split row (char esep) | path expand --no-symlink
}
to_string: {|value|
$value | path expand --no-symlink | str join (char esep)
}
}
def copy []: string -> nothing {
print --no-newline $"(ansi osc)52;c;($in | encode base64)(ansi st)"
}
def --env mc [path: path]: nothing -> nothing {
mkdir $path
cd $path
}
def --env mcg [path: path]: nothing -> nothing {
mkdir $path
cd $path
git init
}