mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
I added completions for - [x] `gh repo clone` - [x] <tab> gives you a list of your repositories on github - [x] `gh repo create` - [x] `--ignore <tab>` gives you a list of gitignores - [x] `--license <tab>` gives you a list of licenses with their description - [x] `gh repo fork` flags Compared to previous PRs on `gh` completion, it's not much, but these features are those I use most of the time. If you want to have completions of some particular subcommand, feel free to ask! ## Samples ![image](https://github.com/nushell/nu_scripts/assets/30557287/96ddb487-f65b-4f6d-9aed-4ef3be140db7) ![image](https://github.com/nushell/nu_scripts/assets/30557287/3f3ccd5d-1b24-4b05-94e3-c980a0badbf5) |
||
---|---|---|
.. | ||
ani-cli | ||
auto-generate | ||
bitwarden-cli | ||
btm | ||
cargo | ||
gh | ||
git | ||
glow | ||
just | ||
make | ||
man | ||
mask | ||
nano | ||
nix | ||
npm | ||
pass | ||
pdm | ||
pnpm | ||
poetry | ||
reflector | ||
rustup | ||
scoop | ||
tealdeer | ||
toipe | ||
typst | ||
winget | ||
yarn | ||
zellij | ||
README.md |
Custom completions
This current directory provides custom completions. They can be used by importing their exported commands via:
use path/to/<command>/<command>-completions.nu *
# or
source path/to/<command>/<command>-completions.nu
# without the `*` at the end
With path/to/<command>
being either the relative path of the file to your current working directory or its absolute path.
Bear in mind that if you import the use <path> *
, it is important that you don't name a function with the same name of the file
# file: rustup.nu
export extern rustup [
...args
]
use ./rustup.nu *
won't work here