nix-dev-home icon indicating copy to clipboard operation
nix-dev-home copied to clipboard

Make sure that shell completions work

Open srid opened this issue 1 year ago • 6 comments

On macOS in particular zsh completions should work. Do they?

For nix-darwin, it requires extra configuration: https://github.com/srid/nixos-config/pull/50

cf. https://github.com/nix-community/home-manager/issues/2562

srid avatar Mar 22 '24 14:03 srid

Works for me on macOS. I am on latest home-manager.

{
  zsh = {
    enable = true;
    enableAutosuggestions = true;
  };
}

This option has now been renamed to zsh.autosuggestion.enable = true;

shivaraj-bh avatar Mar 22 '24 15:03 shivaraj-bh

https://nix-community.github.io/home-manager/options.xhtml#opt-programs.zsh.autosuggestion.enable

Disabled by default. So let's enable it:

https://github.com/juspay/nix-dev-home/blob/9813334270018d3d4eaa6bbeee663aa7fa20efcc/home/default.nix#L67-L73

srid avatar Mar 22 '24 15:03 srid

Wait, this issue is about autocompletion, but you are talking about autosuggestion. What is the connection?

https://github.com/zsh-users/zsh-autosuggestions?tab=readme-ov-file

srid avatar Mar 22 '24 15:03 srid

Wait, this issue is about autocompletion, but you are talking about autosuggestion. What is the connection?

Right, my bad

shivaraj-bh avatar Mar 22 '24 15:03 shivaraj-bh

On WSL Ubuntu, I confirm shell completions to work (using /bin/bash as shell). Tested on the git and just (the later is not pre-installed on Ubuntu).

srid avatar May 20 '24 20:05 srid

I think @rsrohitsingh682 confirmed this to work on macOS (sans nix-darwin)?

srid avatar Jul 24 '24 15:07 srid