Michael Thomas ae8695a47d module(zsh): move from starship to powerlevel10k
improve prompt performance, especially in large git repos like `nixpkgs`, which
are practically unusable with starship since git status and other info is loaded
synchronously.
2023-11-18 15:45:07 -05:00

49 lines
969 B
Nix

{
pkgs,
lib,
...
}: {
programs.zsh = {
enable = true;
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.1.0";
sha256 = "0snhch9hfy83d4amkyxx33izvkhbwmindy0zjjk28hih1a9l2jmx";
};
}
{
name = "powerlevel10k-config";
src = lib.cleanSource ./p10k-config;
file = "p10k.zsh";
}
];
prezto = {
enable = true;
pmodules = [
"archive"
"docker"
"environment"
"git"
"terminal"
"editor"
"history"
"directory"
"spectrum"
"utility"
"completion"
"command-not-found"
"syntax-highlighting"
"history-substring-search"
"autosuggestions"
"prompt"
];
prompt.theme = "powerlevel10k";
};
};
}