Skip to content

bash autocompletion in nix shell (nix command) #4453

@roberth

Description

@roberth

Is your feature request related to a problem? Please describe.

It's frustrating when autocompletion doesn't work in a shell.

Describe the solution you'd like

Simple option: add entries to XDG_DATA_DIRS.

Complicated option: make nix shell use stdenv, which can take care of this logic, at the cost of a Nixpkgs dependency.

Describe alternatives you've considered

Write GUIs for everything that shouldn't have a GUI.

Additional context

Completions are available for derivation-based shells since NixOS/nixpkgs#103501

nix-shell also needs adjustment, see #4452

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-cliRelating to the "nix" commandnix-shellnix-shell, nix develop, nix print-dev-env, etc
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions