A place to share Nushell scripts with each other
Go to file
Auca Coyan 703b551495
add completion to gh pr checkout <tab> (#714)
Hi! I added completion to `gh pr checkout <tab>`
It grabs the first 30 open prs 


![image](https://github.com/nushell/nu_scripts/assets/30557287/755fe63b-dc22-49ef-89c3-27e1ba115d68)

### I tried some things
`gh pr checkout` can accept
- a pr number
- a url
- or a branch

before I tried
- Incrementing the limit of PRs from 30 (default) to 50, but I takes
considerably longer to query, and _gotta go fast_
- using the `extra` field in autocomplete
[`Suggestion`](a4bfaa512b/src/completion/base.rs (L58)).
But I couldn't make it
- tried to use the `title` in the `value`, like this below, but when you
select a row, it pastes the title into the cli, so `gh pr checkout
<title>` doesn't make sense

![image](https://github.com/nushell/nu_scripts/assets/30557287/1c5caf7c-4653-49ba-afc2-ec8ba155b00f)



So, selecting the pr number is the closest I can get to
2023-12-23 00:01:12 -06:00
aliases fix: missing regex flag (#712) 2023-12-22 08:53:54 -06:00
assets move assets so they're more accessible (#445) 2023-04-12 08:29:47 -05:00
before_v0.60 move assets so they're more accessible (#445) 2023-04-12 08:29:47 -05:00
benchmarks fix removed commands (#645) 2023-10-19 19:35:23 +02:00
custom-completions add completion to gh pr checkout <tab> (#714) 2023-12-23 00:01:12 -06:00
custom-menus move the extra menus of Nushell into custom-menus/extra/ (#550) 2023-07-21 10:44:27 +02:00
example-config export env is not in nushell (#529) 2023-06-17 07:48:08 -05:00
make_release add missing tasks to the release note PR (#665) 2023-12-06 18:52:06 +01:00
modules merge container-inspect into container-process-list (#711) 2023-12-22 07:04:26 -06:00
nu-hooks Using def --env instead of def-env (#673) 2023-11-20 06:55:35 -06:00
sourced Change uses of size to str stats (#647) 2023-12-06 18:27:41 +01:00
stdlib-candidate add a "bulk rename" command to the stdlib candidates (#643) 2023-12-11 09:00:10 +01:00
themes Add tokyo-moon theme variant (#710) 2023-12-21 18:08:34 -06:00
.gitattributes Add Nushell Language detect for linguist (#532) 2023-06-21 11:36:01 +03:00
.gitignore update gitignore (#270) 2022-07-30 08:04:58 -05:00
LICENSE Initial commit 2021-01-23 07:33:45 +13:00
package.nuon make hooks a module (#650) 2023-10-23 19:51:49 +03:00
README.md Update README.md: typo (#545) 2023-07-05 10:39:08 -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.