mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03:00
A place to share Nushell scripts with each other
related to - https://github.com/nushell/nushell/pull/10383 this PR resurrects the `cartesian product` command from https://github.com/nushell/nushell/pull/10383 and adds it to the `maths` module of the `nu_scripts`: - a new `cartesian product` command - some unit tests for it ## use the command i've installed the `nu_scripts` with `nupm`, thus i'm able to do ```nushell use nu-scripts/modules/maths/math_functions.nu "cartesian product" cartesian product ... ``` ## run the tests from the root of the `nu_scripts`, checked out on this PR, run ```nushell use std; std testing run-tests --path modules/maths/ --test cartesian_product ``` |
||
---|---|---|
aliases | ||
assets | ||
before_v0.60 | ||
benchmarks | ||
custom-completions | ||
custom-menus | ||
example-config | ||
hooks | ||
make_release | ||
modules | ||
sourced | ||
themes | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
package.nuon | ||
README.md |
Nushell Scripts
This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and create a PR that adds it to the repo.
Sections
- aliases
- benchmarks
- cool-oneliners
- custom-completions - collection of custom completions for external commands.
- custom-menus - collection of custom nushell menus
- example-config
- hooks
- modules - This has its dedicated readme
- nu_101 - Beginner introduction to nushell concepts.
- prompt
- themes
Running Scripts
You can run nushell scripts in a few different ways.
- You can type
nu <script name>
. - From with nushell, you can type
source <script name>
and if the script is just a bunch of commands it will run the script. If the script is a custom command it will load those custom commands into your current scope so you can run them like any other command.