[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
+4 -2
View File
@@ -12,7 +12,9 @@
../modules/llm.nix ../modules/llm.nix
]; ];
programs.fish.shellAliases = { programs.zsh.shellAliases = {
"flake-update" = "home-manager switch --flake ${config.home.homeDirectory}/flakes#origami@hypnos"; "hm-update" = "home-manager switch --flake ${config.home.homeDirectory}/flakes#origami@hypnos";
}; };
# 外壳同款配色
programs.zsh.initContent = "zstyle ':prompt:grml:*:items:user' pre '%F{#82C8E5}'";
} }
+7 -12
View File
@@ -2,21 +2,16 @@
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
plugins = [ enableCompletion = true;
{ autosuggestion.enable = true;
name = "zsh-autosuggestions"; syntaxHighlighting.enable = true;
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.7.1";
hash = "sha256-vpTyYq9ZgfgdDsWzjxVAE7FZH4MALMNZIFyEOBLm5Qo=";
};
}
];
}; };
home.file.".zshrc".source = ./zsh/.zshrc; home.shell.enableZshIntegration = true;
home.file.".zsh.d" = { home.file.".zsh.d" = {
source = ./zsh/.zsh.d; source = ./zsh/.zsh.d;
recursive = true; recursive = true;
}; };
home.file.".zshrc.o4".source = ./zsh/.zshrc;
programs.zsh.initContent = "source $HOME/.zshrc.o4";
} }