Closed jaypikay closed 12 months ago
Did you generate the completion script during compilation? a la this:
cargo run --release --locked --bin rbw -- gen-completions zsh >zsh-completions
I have installed it through the Community repository in Arch Linux. The PGKBUILD is doing it the way you described:
# generate shell auto-completions
for completion in bash fish zsh; do
cargo run --frozen --release --bin rbw -- \
gen-completions "$completion" > "$completion-completions"
done
yeah, the intended way to use this is to put the generated script on your fpath
. i'm not sure what just sourcing the output directly would do, but it's not something intended to be supported.
To test the auto completion I have tried to source the output of gen-completions, but get an error message which breaks the initialization.
Not sure if I am using it wrong, or if there is a problem with the generated script.