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

nushell: nr -> *, ns -> >

This commit is contained in:
RGBCube 2025-07-18 00:32:05 +03:00
parent 9434d5bd12
commit f44fb42a0c
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -63,7 +63,7 @@ in {
home-manager.sharedModules = [{ home-manager.sharedModules = [{
programs.nushell.configFile.text = mkAfter /* nu */ '' programs.nushell.configFile.text = mkAfter /* nu */ ''
def --wrapped nr [program: string = "", ...arguments] { def --wrapped * [program: string = "", ...arguments] {
if ($program | str contains "#") or ($program | str contains ":") { if ($program | str contains "#") or ($program | str contains ":") {
nix run $program -- ...$arguments nix run $program -- ...$arguments
} else { } else {
@ -71,7 +71,7 @@ in {
} }
} }
def --wrapped ns [...programs] { def --wrapped > [...programs] {
nix shell ...($programs | each { nix shell ...($programs | each {
if ($in | str contains "#") or ($in | str contains ":") { if ($in | str contains "#") or ($in | str contains ":") {
$in $in