Skip to content

[FEATURE] Add shell completions macros #152

Description

@Tbusk

Proposal

Currently you need to use the %install_file macro paired with figuring out where to put the files for each completion, which is hard to remember.

The current way looks like this:

    %install_file extra/completions/alacritty.bash $installdir/usr/share/bash-completion/completions/alacritty
    %install_file extra/completions/_alacritty $installdir/usr/share/zsh/site-functions/_alacritty
    %install_file extra/completions/alacritty.fish $installdir/usr/share/fish/vendor_completions.d/alacritty.fish

It could look like this

    %install_bash_comp extra/completions/alacritty.bash
    %install_zsh_comp extra/completions/_alacritty
    %install_fish_comp extra/completions/alacritty.fish

Use cases

Installing shell completions easily and removing room for error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions