From 9605100abe8d5ccecedec9a4aadc63cc5c396a66 Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Fri, 15 Dec 2023 16:08:16 +0100 Subject: [PATCH] Add zsh plugin to open nix-shell in zsh --- modules/home-manager/zsh.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index 7a61f3d0..e118ab9e 100755 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -12,11 +12,18 @@ ignoreAllDups = true; }; - plugins = [{ - name = pkgs.zsh-autosuggestions.pname; - file = "zsh-autosuggestions.zsh"; - src = "${pkgs.zsh-autosuggestions}/share/${pkgs.zsh-autosuggestions.pname}"; - }]; + plugins = [ + { + name = pkgs.zsh-autosuggestions.pname; + file = "zsh-autosuggestions.zsh"; + src = "${pkgs.zsh-autosuggestions}/share/${pkgs.zsh-autosuggestions.pname}"; + } + { + name = pkgs.zsh-nix-shell.pname; + file = "nix-shell.plugin.zsh"; + src = "${pkgs.zsh-nix-shell}/share/${pkgs.zsh-nix-shell.pname}"; + } + ]; localVariables.ZSH_AUTOSUGGEST_STRATEGY = [ "completion" ];