mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
deploy: bc2b96acda
This commit is contained in:
parent
73c27f3628
commit
f6fae09924
1 changed files with 30 additions and 0 deletions
|
@ -53500,6 +53500,36 @@ null or string</p>
|
||||||
<p><span class="emphasis"><em>Example:</em></span>
|
<p><span class="emphasis"><em>Example:</em></span>
|
||||||
<code class="literal">"fg=#ff00ff,bg=cyan,bold,underline"</code></p>
|
<code class="literal">"fg=#ff00ff,bg=cyan,bold,underline"</code></p>
|
||||||
|
|
||||||
|
<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.nix" target="_top">
|
||||||
|
<home-manager/modules/programs/zsh.nix>
|
||||||
|
</a></code>
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
<span class="term">
|
||||||
|
<a id="opt-programs.zsh.autosuggestion.strategy"></a><a class="term" href="options.xhtml#opt-programs.zsh.autosuggestion.strategy"><code class="option">programs.zsh.autosuggestion.strategy</code>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<p><code class="literal">ZSH_AUTOSUGGEST_STRATEGY</code> is an array that specifies how suggestions should be generated.
|
||||||
|
The strategies in the array are tried successively until a suggestion is found.
|
||||||
|
There are currently three built-in strategies to choose from:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p><code class="literal">history</code>: Chooses the most recent match from history.</p></li><li class="listitem"><p><code class="literal">completion</code>: Chooses a suggestion based on what tab-completion would suggest. (requires <code class="literal">zpty</code> module)</p></li><li class="listitem"><p><code class="literal">match_prev_cmd</code>: Like <code class="literal">history</code>, but chooses the most recent match whose preceding history item matches
|
||||||
|
the most recently executed command. Note that this strategy won’t work as expected with ZSH options that
|
||||||
|
don’t preserve the history order such as <code class="literal">HIST_IGNORE_ALL_DUPS</code> or <code class="literal">HIST_EXPIRE_DUPS_FIRST</code>.</p></li></ul></div>
|
||||||
|
|
||||||
|
<p><span class="emphasis"><em>Type:</em></span>
|
||||||
|
list of (one of “history”, “completion”, “match_prev_cmd”)</p>
|
||||||
|
|
||||||
|
<p><span class="emphasis"><em>Default:</em></span></p><pre><code class="programlisting">[
|
||||||
|
"history"
|
||||||
|
]
|
||||||
|
</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>
|
||||||
|
|
Loading…
Reference in a new issue