A place to share Nushell scripts with each other
Go to file
NotTheDr01ds bd1ab4e7a7
Simplify theme usage (#896)
* Primary change: Simplifies theme usage by adding an `export-env` to
each theme so that `$env.config.color_config` is automatically set when
importing the module.

  Rather than the old:

  ```nu
  use nu-themes/nushell-dark.nu
  $env.config.color_config = (nushell-dark)
  ```

  It's now a single-step:

  ```nu
  use nu-themes/nushell-dark.nu
  ```

* Updates `make.nu` to create the theme files (uses the previously added
`str dedent` for clean output).
* A couple (literally, 2) of the remote themes did not have all
necessary colors and failed. Updated `make.nu` to continue on error, but
report the failures.
* Updated `README.md`
2024-07-18 15:39:46 -05:00
.github/workflows features = full isn't a thing anymore 2024-06-01 04:41:31 -05:00
aliases feat: add docker aliases (#861) 2024-06-03 06:38:38 -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 Add fibonacci benchmark, for fairly low-level eval performance (#892) 2024-07-11 06:03:36 -05:00
custom-completions Added Git completions for the restore subcommand (#895) 2024-07-16 12:20:00 -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 Prevent branch from merging against main (#886) 2024-06-26 06:34:03 -05:00
modules nix/activation-script: update for nushell 0.95 (#890) 2024-06-29 15:59:53 -05:00
nu-hooks add "nuenv" hook (#889) 2024-07-03 22:06:54 +02: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 New std-rfc command str dedent (a.k.a. unindent) to remove common indentation from a multiline string (#894) 2024-07-16 12:20:18 -05:00
themes Simplify theme usage (#896) 2024-07-18 15:39:46 -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.