1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-16 10:11:04 +00:00
ncc/modules/common/nushell/environment.nu
2025-06-04 03:03:28 +03:00

23 lines
494 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
jj git init --colocate
}