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:
parent
669e813c75
commit
c5cad190ba
1 changed files with 10 additions and 0 deletions
|
|
@ -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 ];
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue