[zsh] 更新配置
This commit is contained in:
@@ -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
@@ -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.shell.enableZshIntegration = true;
|
||||||
];
|
|
||||||
};
|
|
||||||
home.file.".zshrc".source = ./zsh/.zshrc;
|
|
||||||
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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user