mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 18:47:44 +00:00
nushell: nr -> *, ns -> >
This commit is contained in:
parent
9434d5bd12
commit
f44fb42a0c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue