1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

zsh: update doc to show how to add initContent at multiple location. (#6945)

This commit is contained in:
milanglacier 2025-05-02 09:18:11 -04:00 committed by GitHub
parent 669e813c75
commit c5cad190ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -515,6 +515,16 @@ in
- 550: Before completion initialization (replaces initExtraBeforeCompInit)
- 1000 (default): General configuration (replaces initExtra)
- 1500 (mkAfter): Last to run configuration
To specify both content in Early initialization and General configuration, use `lib.mkMerge`.
e.g.
initContent = let
zshConfigEarlyInit = lib.mkOrder 500 "do something";
zshConfig = lib.mkOrder 1000 "do something";
in
lib.mkMerge [ zshConfigEarlyInit zshConfig ];
'';
};