mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 10:37: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 = [{
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue