nu_scripts/custom-completions
Auca Coyan b9cfa0d204
🐛 fix (default) and (installed) on rustup completions (#721)
Updating rust by
```
rustup update <tab>
```
gives you:


![image](https://github.com/nushell/nu_scripts/assets/30557287/fe65bebc-c593-46b2-b696-bc1d093ee0b6)

and when you press enter on stable:

![image](https://github.com/nushell/nu_scripts/assets/30557287/59b98da7-f174-4518-b30b-88e6a9462603)

the ` (default)` part is piped into the cmdline. This is unintended.
I fixed components, toolchains & targets 💪🏼
2023-12-29 08:35:15 -06:00
..
ani-cli fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
auto-generate Add rustup completions (#690) 2023-12-08 12:28:42 -06:00
bitwarden-cli fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
btm fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
cargo fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
gh add completion to gh pr checkout <tab> (#714) 2023-12-23 00:01:12 -06:00
git completions/git: fix support for path relative to current directory (#666) 2023-11-14 06:25:00 -06:00
glow fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
just cwdhist: alternative to zoxide (#656) 2023-11-05 06:55:02 -06:00
make Case insensitive and reformatted make completions (#515) 2023-05-26 16:00:23 -05:00
man Fix: Completions Broken '-s' flag in man-completions (#619) 2023-09-24 11:05:37 +02:00
mask mask-completions (#631) 2023-10-07 12:26:58 +02:00
nano the function to display bars of given percentage from given width (#478) 2023-05-12 09:11:20 -05:00
nix fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
npm fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
pass fix pass-completion as let cannot be used at module level (#544) 2023-07-03 07:54:14 -05:00
pdm feat(completions): add PDM custom completions (#573) 2023-08-09 09:27:17 -05:00
pnpm Add pnpm completions (#692) 2023-12-09 10:55:52 -06:00
poetry fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
reflector fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
rustup 🐛 fix (default) and (installed) on rustup completions (#721) 2023-12-29 08:35:15 -06:00
scoop custom-completions: scoop: fix getting environmental variables (#567) 2023-08-01 07:38:38 -05:00
tealdeer fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
toipe add completion for toipe (#508) 2023-05-24 13:02:00 -05:00
typst Fixed the completion of --flamegraph (#502) 2023-05-17 17:34:01 -05:00
vscode code completions (#719) 2023-12-27 08:28:43 -06:00
winget Move def before extern in winget-completions.nu (#638) 2023-10-15 17:03:53 -05:00
yarn 🐛 rename yarn for yarn-v4 and add run cmpl (#720) 2023-12-28 10:05:09 -06:00
zellij fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
README.md 🐛 Fix rustup use completions and modify README (#696) 2023-12-13 16:43:19 -06:00

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