[zsh] 更新配置
This commit is contained in:
+7
-12
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user