mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-27 13:01:57 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
24 lines
642 B
Markdown
24 lines
642 B
Markdown
# Custom completions
|
|
|
|
This current directory provides custom completions. They can be used by importing their exported commands via:
|
|
|
|
```nushell
|
|
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
|
|
|
|
```nu
|
|
# file: rustup.nu
|
|
|
|
export extern rustup [
|
|
...args
|
|
]
|
|
```
|
|
`use ./rustup.nu *` won't work here
|