mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 13:55:28 +03:00
af92dca520
Hey, it's me, I finally fixed this `use` vs `source` script.nu 😄
Also, I added a few lines of the `custom-completions/README.md` to
explain what happened in my case
642 B
642 B
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