49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ pkgs, ... }: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableAutosuggestions = true;
|
|
enableCompletion = true;
|
|
history = {
|
|
save = 1000000;
|
|
size = 1000000;
|
|
};
|
|
initExtra = ''
|
|
${builtins.readFile ./zshrc}
|
|
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
|
source ${./p10k.zsh}
|
|
'';
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [ "colored-man-pages" ];
|
|
};
|
|
plugins = [
|
|
#{
|
|
#name = "titles";
|
|
#src = pkgs.fetchFromGitHub {
|
|
#owner = "jreese";
|
|
#repo = "zsh-titles";
|
|
#rev = "b7d46d7";
|
|
#sha256 = "0rca9a22vz11pnkks5vlspfnmd3m1s38hz901gvgfa39ch3va9ad";
|
|
#};
|
|
#}
|
|
{
|
|
name = "auto-notify";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "MichaelAquilina";
|
|
repo = "zsh-auto-notify";
|
|
rev = "0.8.0";
|
|
sha256 = "02x7q0ncbj1bn031ha7k3n2q2vrbv1wbvpx9w2qxv9jagqnjm3bd";
|
|
};
|
|
}
|
|
{
|
|
name = "you-should-use";
|
|
src = "${pkgs.zsh-you-should-use}/share/zsh/plugins/you-should-use";
|
|
}
|
|
{
|
|
name = "zsh-nix-shell";
|
|
file = "nix-shell.plugin.zsh";
|
|
src = "${pkgs.zsh-nix-shell}/share/zsh-nix-shell";
|
|
}
|
|
];
|
|
};
|
|
}
|