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
to help writing the release notes, i think being able to list all the PRs between the last two releases and format them directly to a raw table is really nice. this PR - `export`s the `main` command from `list-merged-prs` - adds an example to the `template.md` file of the release notes the example: ```nushell use ./make_release/release-note/list-merged-prs list-merged-prs nushell/nushell <last-release-date> | where author != "app/dependabot" | sort-by mergedAt | update url {|it| $"[#($it.number)]\(($it.url)\)" } | update author { $"[@($in)]\(https://github.com/($in)\)" } | select author title url | rename -c {url: pr} | to md --pretty ``` will dump all the PRs in a `table<author: string, title: string, pr: string>` in `md` format: - `author` is a mardown link to the GitHub page of each author - `title` is the title of the PRs - `pr` is a markdown link to the GitHub page of each PR this pipeline will omit the contributions from @app/dependabot. |
||
---|---|---|
aliases | ||
assets | ||
before_v0.60 | ||
benchmarks | ||
custom-completions | ||
custom-menus | ||
example-config | ||
make_release | ||
modules | ||
nu-hooks | ||
sourced | ||
stdlib-candidate | ||
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.