Files
nix/zsh/zsh.nix

29 lines
603 B
Nix

{ pkgs, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
defaultKeymap = "viins";
history.extended = true;
initExtra = ''
${builtins.readFile ./zshrc}
'';
sessionVariables = rec {
EDITOR = "nvim";
};
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.6.3";
sha256 = "1h8h2mz9wpjpymgl2p7pc146c1jgb3dggpvzwm9ln3in336wl95c";
};
}
];
};
}