feat(zsh): remove prezto for faster start times
This commit is contained in:
parent
71f2e67235
commit
5d0d5f7fb1
@ -46,6 +46,7 @@
|
||||
eval `/usr/libexec/path_helper -s`
|
||||
fi
|
||||
'';
|
||||
enableGlobalCompInit = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -5,6 +5,27 @@
|
||||
}: {
|
||||
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";
|
||||
@ -16,33 +37,6 @@
|
||||
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||
};
|
||||
}
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user