1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
This commit is contained in:
khaneliman 2025-05-02 13:19:03 +00:00
parent a1bbac3837
commit 0c355cdbce

View file

@ -67608,7 +67608,11 @@ The default of <code class="literal">^[[A</code> may correspond to the UP key
</span>
</dt>
<dd>
<p>Content to be added to <code class="filename">.zshrc</code>.</p><p>To specify the order, use <code class="literal">lib.mkOrder</code>.</p><p>Common order values:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>500 (mkBefore): Early initialization (replaces initExtraFirst)</p></li><li class="listitem"><p>550: Before completion initialization (replaces initExtraBeforeCompInit)</p></li><li class="listitem"><p>1000 (default): General configuration (replaces initExtra)</p></li><li class="listitem"><p>1500 (mkAfter): Last to run configuration</p></li></ul></div>
<p>Content to be added to <code class="filename">.zshrc</code>.</p><p>To specify the order, use <code class="literal">lib.mkOrder</code>.</p><p>Common order values:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>500 (mkBefore): Early initialization (replaces initExtraFirst)</p></li><li class="listitem"><p>550: Before completion initialization (replaces initExtraBeforeCompInit)</p></li><li class="listitem"><p>1000 (default): General configuration (replaces initExtra)</p></li><li class="listitem"><p>1500 (mkAfter): Last to run configuration</p></li></ul></div><p>To specify both content in Early initialization and General configuration, use <code class="literal">lib.mkMerge</code>.</p><p>e.g.</p><p>initContent = let
zshConfigEarlyInit = lib.mkOrder 500 “do something”;
zshConfig = lib.mkOrder 1000 “do something”;
in
lib.mkMerge [ zshConfigEarlyInit zshConfig ];</p>
<p><span class="emphasis"><em>Type:</em></span>
strings concatenated with “\n”</p>