diff --git a/home/lander/features/cli/zsh.nix b/home/lander/features/cli/zsh.nix index 1d0ab82..b5696f4 100644 --- a/home/lander/features/cli/zsh.nix +++ b/home/lander/features/cli/zsh.nix @@ -1,3 +1,4 @@ +{ pkgs, ... }: { programs = { zsh = { @@ -17,6 +18,19 @@ path = "$HOME/.cache/zsh_history"; }; + plugins = [ + { + name = "zsh-nix-shell"; + file = "nix-shell.plugin.zsh"; + src = pkgs.fetchFromGitHub { + owner = "chisui"; + repo = "zsh-nix-shell"; + rev = "v0.8.0"; + sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7"; + }; + } + ]; + initExtra = '' bindkey '^[[1;5C' forward-word # Ctrl+RightArrow bindkey '^[[1;5D' backward-word # Ctrl+LeftArrow