1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37: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 = [{
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 ":") {
nix run $program -- ...$arguments
} else {
@ -71,7 +71,7 @@ in {
}
}
def --wrapped ns [...programs] {
def --wrapped > [...programs] {
nix shell ...($programs | each {
if ($in | str contains "#") or ($in | str contains ":") {
$in