[zsh] 更新配置

This commit is contained in:
2026-01-18 20:26:48 +08:00
parent 891ebb1b58
commit 01197656cd
2 changed files with 11 additions and 14 deletions
+7 -12
View File
@@ -2,21 +2,16 @@
{
programs.zsh = {
enable = true;
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.7.1";
hash = "sha256-vpTyYq9ZgfgdDsWzjxVAE7FZH4MALMNZIFyEOBLm5Qo=";
};
}
];
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
};
home.file.".zshrc".source = ./zsh/.zshrc;
home.shell.enableZshIntegration = true;
home.file.".zsh.d" = {
source = ./zsh/.zsh.d;
recursive = true;
};
home.file.".zshrc.o4".source = ./zsh/.zshrc;
programs.zsh.initContent = "source $HOME/.zshrc.o4";
}