[zsh] 清除 nix darwin 上多次重复的 compinit, 提升 zsh 启动速度

This commit is contained in:
2026-05-17 10:54:49 +08:00
parent 658910097b
commit ff73a24bab
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
programs.zsh.enable = true; programs.zsh.enable = true;
programs.zsh.enableCompletion = false;
home.shell.enableZshIntegration = true; home.shell.enableZshIntegration = true;
home.file = home.file =
+1 -1
View File
@@ -1644,7 +1644,7 @@ bind2maps emacs viins vicmd -- -s '\e'${key[Left]} backward-word
zrcautoload zmv zrcautoload zmv
# zrcautoload zed # o4: 禁用 zed, 和 zed editor 的 cli binary name 撞车了 # zrcautoload zed # o4: 禁用 zed, 和 zed editor 的 cli binary name 撞车了
unset -f zed # unset -f zed
# we don't want to quote/espace URLs on our own... # we don't want to quote/espace URLs on our own...
# if autoload -U url-quote-magic ; then # if autoload -U url-quote-magic ; then
+1
View File
@@ -11,6 +11,7 @@
time.timeZone = "Asia/Shanghai"; time.timeZone = "Asia/Shanghai";
programs.zsh.enable = true; programs.zsh.enable = true;
programs.zsh.enableGlobalCompInit = false;
users.users.origami = { users.users.origami = {
home = "/Users/origami"; home = "/Users/origami";