Skip to content

Should $(opam env) or .opam/opam-init/* setup paths for shell completion scripts ? #6427

@dbuenzli

Description

@dbuenzli

I'm not sure whether this belongs to the opam-repository or here but since this could interact with what opam does for shell detection I'm doing it here.

opam extends quite a few configuration paths so that stuffs gets looked up in the opam prefix (e.g. PATH, MANPATH1). I was wondering if perhaps opam could do the same for shell completion scripts according to the current shell. That way packages can simply install completion scripts in the prefix where the various shell expect them and they get automatically picked up by the user shell as packages come and go.

It seems at least me an another person are interested :-)

What do you think ?

Footnotes

  1. On macos I don't know how, but invoking manpath has it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions