snipt

Ctrl+h for KB shortcuts

Bash

tcsh like history search with zsh

1
2
3
4
#bindkey "^[[A" up-line-or-history
#bindkey "^[[B" down-line-or-history
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
https://snipt.net/embed/fc085fddf18f9d6a87e54cc68aa31ade/
/raw/fc085fddf18f9d6a87e54cc68aa31ade/
fc085fddf18f9d6a87e54cc68aa31ade
bash
Bash
4
2019-07-17T03:37:19
True
False
False
/api/public/snipt/5030/
tcsh-like-history-search-with-zsh
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#bindkey &quot;^[[A&quot; up-line-or-history</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">#bindkey &quot;^[[B&quot; down-line-or-history</span> </span><span id="L-3"><a name="L-3"></a>bindkey <span class="s2">&quot;^[[A&quot;</span> history-beginning-search-backward </span><span id="L-4"><a name="L-4"></a>bindkey <span class="s2">&quot;^[[B&quot;</span> history-beginning-search-forward </span></pre></div> </td></tr></table>
dotfile, shell, tcsh, zsh