A place to share Nushell scripts with each other
Go to file
NotTheDr01ds 995c1ea21c
Update theme preview scripts and screenshots (#909)
Lots of changes - Pretty every change needed to be made before updating
the preview screenshots, so they all end up in the same PR here:

* `preview-generate-screenshots.nu` now generates the previews and
screenshots all in one pass rather than requiring a separate file.

* Adds a new method for generating screenshots using PowerShell with no
third-party application required. Created new function for choosing the
method that is used to generate screenshots.

* Fixes background color on `nushell-dark` and `nushell-light` themes.

* Fixes bug where `cursor` setting (and perhaps one other) was getting
dropped from the preview table (`math ceil` was needed rather than `math
floor`)

* Fixes `cellpath` setting - Was changed to `cell-path` a while back but
never updated in the themes. All themes and their previews were
regenerated. Custom themes were manually adjusted.

* **Important:** I did not update `make.nu` to fix this (yet) since
@amtoine has a open PR against it that has not been merged yet. Easier
to either put that change in that PR or do it after that one has been
merged.

* Adds `mod.nu` in the root of the `themes` module. Moves some of the
previous script commands such as `preview_terminal`,
`preview_theme_small`, etc. over to the module. Makes for cleaner usage.

* Note: The completion functions in the scripts have been broken for
several months. I did not fix this at this point.

* `preview_theme_small` (and others) renamed to use spaces in command
name, so it is now `preview theme small`.

* Fixes bug of my own making that prevented several custom themes from
working.

* Refactors the "list to columns" code to use `group` (will need to be
updated to `chunks` in 0.96)
* Suppresses the indices column in the preview table
* Removes the column headers entirely since they don't serve any purpose
in this type of "columnar table"
2024-07-22 14:21:28 -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 Feature/add git grep completions (#898) 2024-07-21 06:59:39 -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 add silent option to nu_msvs (#910) 2024-07-22 14:08:46 -05:00
nu-hooks bump the nu-hooks package to 0.2.0 (#901) 2024-07-21 07:00:02 -05:00
sourced Fixes scope commands call and columns (#908) 2024-07-21 07:40:22 -05:00
stdlib-candidate RFC: add a command to help parsing arguments in scripts (#875) 2024-07-21 06:58:34 -05:00
themes Update theme preview scripts and screenshots (#909) 2024-07-22 14:21:28 -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.