snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#1302

Bash

most used commands in zsh

cat ~/.zsh/history|cut -d ';' -f 2- 2>/dev/null| awk '{a[$1]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
https://snipt.net/embed/cea0f01c500bc751d941034f22d67b0f/
https://snipt.net/raw/cea0f01c500bc751d941034f22d67b0f/
cea0f01c500bc751d941034f22d67b0f
bash
Bash
1
2014-04-23T12:26:28
True
False
/api/public/snipt/1302/
most-used-commands-in-zsh
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>cat ~/.zsh/history<span class="p">|</span>cut -d <span class="s1">&#39;;&#39;</span> -f 2- 2&gt;/dev/null<span class="p">|</span> awk <span class="s1">&#39;{a[$1]++ } END{for(i in a){print a[i] &quot; &quot; i}}&#39;</span><span class="p">|</span>sort -rn<span class="p">|</span>head </span></pre></div> </td></tr></table>
zsh
#1201

Text only

Enable mplayer's .ass subtitles support

1
2
3
## Enable stylized subtitles
ass=yes
embeddedfonts=yes
https://snipt.net/embed/d65e586d6df9607405a8a7d64ef1f22a/
https://snipt.net/raw/d65e586d6df9607405a8a7d64ef1f22a/
d65e586d6df9607405a8a7d64ef1f22a
text
Text only
3
2014-04-24T03:20:50
True
False
/api/public/snipt/1201/
enable-mplayers-ass-subtitles-support
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>## Enable stylized subtitles </span><span id="L-2"><a name="L-2"></a>ass=yes </span><span id="L-3"><a name="L-3"></a>embeddedfonts=yes </span></pre></div> </td></tr></table>
mplayer