A place to share Nushell scripts with each other
Go to file
Maxim Uvarov 5271d68b7a
improve std bench and add significant-digits (#859)
Hi! I propose several changes to `std bench`:
- Remove insignificant precision by default (can be reverted with
`--sign-digits=0`).
- Remove the 'times' field by default (can be returned with
`--list-timings`).
- Add an option to set time units (inactive by default).

For removing insignificant precision, I needed a new command
`significant-digits` which is also included in this PR. This command has
tests.

<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/ce98aebe-7c1b-4d8f-b2d0-3282d1ff3883">
<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/508fef3e-ba70-40fd-8f9e-82b6ac608485">
<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/af755f28-8506-4f4c-8bc2-91b35798855d">
2024-06-01 04:54:45 -05:00
.github/workflows features = full isn't a thing anymore 2024-06-01 04:41:31 -05:00
aliases Add chezmoi aliases (#788) 2024-03-12 10:55:37 -05:00
assets use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
before_v0.60/cool_oneliners Port before_v0.60/with_externals and cleanup (#852) 2024-05-26 16:34:36 -05:00
benchmarks fix removed commands (#645) 2023-10-19 19:35:23 +02:00
custom-completions Support whitespace before target name for make completions (#858) 2024-05-30 14:37:43 -05:00
custom-menus fix: adjust for nushell commandline syntax deprecation (#840) 2024-05-19 13:33:08 -05:00
example-config use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
make_release Edit release notes template (#853) 2024-05-28 19:32:39 +00:00
modules Port before_v0.60/with_externals and cleanup (#852) 2024-05-26 16:34:36 -05:00
nu-hooks use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
sourced Port before_v0.60/data_extraction before_v0.60/examples before_v0.60/duplicates (#847) 2024-05-26 12:37:29 -05:00
stdlib-candidate improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
themes fix: adjust for nushell commandline syntax deprecation (#840) 2024-05-19 13:33:08 -05:00
.gitattributes Add Nushell Language detect for linguist (#532) 2023-06-21 11:36:01 +03:00
.gitignore fix regressions noted in 0.93.1 from 0.83: (#843) 2024-05-25 08:28:42 -05:00
LICENSE Initial commit 2021-01-23 07:33:45 +13:00
README.md Remove the failing CI on the main branch (#805) 2024-03-30 16:37:19 -05:00
toolkit.nu Refactor toolkit.nu (#791) 2024-03-15 19:17:31 +02:00
typos.toml use typos for corrections (#833) 2024-05-08 06:47:54 -05:00

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

Running Scripts

You can run nushell scripts in a few different ways.

  1. You can type nu <script name>.
  2. 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.