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-08-05 19:04:01 +00:00
parent dc5f94e1d7
commit c52b166250

View file

@ -79805,6 +79805,39 @@ attribute set of string</p>
</code></pre> </code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/zsh" target="_top">
&lt;home-manager/modules/programs/zsh&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.zsh.siteFunctions"></a><a class="term" href="options.xhtml#opt-programs.zsh.siteFunctions"><code class="option">programs.zsh.siteFunctions</code>
</a>
</span>
</dt>
<dd>
<p>Functions that are added to the Zsh environment and are subject to
<span class="command"><strong>autoload</strong></span>ing. The key is the name and the value is the body of
the function to be autoloaded.</p><p>They are also already marked for autoloading through <code class="literal">autoload -Uz</code>.</p>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of strings concatenated with “\n”</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
mkcd = &#x27;&#x27;
mkdir --parents &quot;$1&quot; &amp;&amp; cd &quot;$1&quot;
&#x27;&#x27;;
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p> <p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist"> <table border="0" summary="Simple list" class="simplelist">
<tr><td> <tr><td>