1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-21 12:41:13 +00:00
ncc/modules/nushell/environment.nu
RGBCube 62c575774b
Refactor the whole codebase. Most notable changes:
- No more fail2ban. It didn't work properly
  anyways, I'll need to look into this in the future
- No nix-super. I don't need it and the overlay is
  broken so I'm waiting for that to be fixed first.
- Uses nh instead of nixos-rebuild. This is much
  better.
2024-04-19 16:24:30 +03:00

21 lines
408 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 --env mc [path: path] {
mkdir $path
cd $path
}
def --env mcg [path: path] {
mkdir $path
cd $path
git init
}
zoxide init nushell --cmd cd | save --force ~/.config/nushell/zoxide.nu