Hey,
When Leaf is installed system-wide, it would make more sense to also have the shell completions installed system-wide, rather than asking each user to individually install the completions for their shell.
Currently, as a packager, I can:
for _shell in bash fish zsh; do
env SHELL=$_shell HOME=$TMPDIR --auto-complete
done
and I would then have to find the completions as
$TMPDIR/.local/share/leaf/completions/leaf.bash
$TMPDIR/.config/fish/completions/leaf.fish`
$TMPDIR/.local/share/leaf/completions/_leaf
# Ignore $TMPDIR/.bashrc and $TMPDIR/.zshrc
and install them in the package.
With the proposed change/addition, packagers could
for _shell in bash fish zsh; do
leaf --generate-completions "$_shell" > "_completions.$_shell"
done
and have the completions available as
_completions.bash
_completions.fish
_completions.zsh
# And _no_ RC files
from where they can [more] easily be packaged, and they would be immediately available to all users.
Cheers.
Hey,
When Leaf is installed system-wide, it would make more sense to also have the shell completions installed system-wide, rather than asking each user to individually install the completions for their shell.
Currently, as a packager, I can:
and I would then have to find the completions as
and install them in the package.
With the proposed change/addition, packagers could
and have the completions available as
_completions.bash _completions.fish _completions.zsh # And _no_ RC filesfrom where they can [more] easily be packaged, and they would be immediately available to all users.
Cheers.