43 lines
857 B
Nix

{
pkgs,
lib,
...
}: {
programs.zsh = {
enable = true;
enableAutosuggestions = true;
# autosuggestion.enable = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
autocd = true;
enableCompletion = true;
# Enable pure prompt
initExtra = ''
fpath+=${pkgs.pure-prompt}/share/zsh/site-functions
autoload -U promptinit;
promptinit
prompt pure
'';
sessionVariables = {
# Make ls colorful on MacOS
CLICOLOR = 1;
};
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";
};
}
];
};
}