Skip to content

[Q] fzf-tab suggestion works with CLI tools installed via Homebrew, but doesn't work with tools installed via Nix #538

@sondhg

Description

@sondhg

My system

Problem description

For example, let's say I install a CLI tool such as bat, in two ways.

  1. Install via Homebrew: brew install bat. When I type bat -- and hit Tab key, fzf-tab suggests the flags available for this CLI tool.
  2. Install via Nix: nix-env -iA nixpkgs.bat or nix profile install nixpkgs#bat. When I type bat -- and hit Tab key, fzf-tab does not suggest anything.

I'm an absolute noob at Linux, and I'm new to the Nix package manager so I don't know all the differences between it and Homebrew. My assumption is, Homebrew tends to add installed CLI tools to PATH, so the commands can be "discovered" by fzf-tab. Nix does this in a different way, so fzf-tab does not have info on the packages installed via Nix.

That is only my assumption. I'm not sure how to solve the problem so that fzf-tab can work seamlessly with packages installed via Nix. Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions