mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 08:50:31 +03:00
A place to share Nushell scripts with each other
2fe0756df9
This PR is part of porting all old scripts #221 and ports `fun` folder <details><summary>Summary</summary> ### star.nu ```yaml from: before_v0.60/fun/star.nu to: modules/fun/star.nu ``` ### spark.nu The script has already been ported. I've removed old version. ```yaml from: before_v0.60/fun/spark.nu to: sourced/fun/spark.nu functions: spark: sourced/fun/spark.nu:1:spark ``` ### life.nu ```yaml from: before_v0.60/fun/life.nu to: modules/fun/life.nu ``` ### lisp_mode.nu There is a problem with this module because `-` is not allowed in names anymore, however `def "-"` is a valid syntax, but you will be unable to call this function. ```yaml from: before_v0.60/fun/lisp_mode.nu to: sourced/fun/lisp_mode.nu ``` ### nyancat.nu I also fixed animation frames from https://github.com/klange/nyancat ```yaml from: before_v0.60/fun/nyancat.nu to: modules/fun/nyancat.nu ``` </details> |
||
---|---|---|
.github/workflows | ||
aliases | ||
assets | ||
before_v0.60 | ||
benchmarks | ||
custom-completions | ||
custom-menus | ||
example-config | ||
make_release | ||
modules | ||
nu-hooks | ||
sourced | ||
stdlib-candidate | ||
themes | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
toolkit.nu | ||
typos.toml |
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
- nu-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.