<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[blog.munge.net]]></title>
  <link href="http://blog.munge.net/atom.xml" rel="self"/>
  <link href="http://blog.munge.net/"/>
  <updated>2012-01-04T18:40:25-06:00</updated>
  <id>http://blog.munge.net/</id>
  <author>
    <name><![CDATA[Aaron Malone]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Fun with zsh themes]]></title>
    <link href="http://blog.munge.net/2011/10/fun-with-zsh-themes/"/>
    <updated>2011-10-17T23:40:00-05:00</updated>
    <id>http://blog.munge.net/2011/10/fun-with-zsh-themes</id>
    <content type="html"><![CDATA[<p>I&#8217;ve been having lots of fun for the last couple of weeks mucking about with
different version control systems; choosing whether to focus personally on
<a href="http://git-scm.com">Git</a> or <a href="http://mercurial.selenic.com/">Mercurial</a> (Git won, though only just), and getting
comfortable with it.</p>

<p>As part of the process, I&#8217;ve been reading a lot of stuff people have written
about both systems, and poke around many tools for making life with them more
pleasant. Steve Losh&#8217;s <a href="http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/">extravagant zsh prompt</a> is one of those.</p>

<p><img src="http://blog.munge.net/images/2011/zshprompt.png"></p>

<!--more-->


<p>I&#8217;ve tweaked it a little; restored the normal zsh % or # indicator to tell if
I&#8217;m root (I know the username is right there, but I&#8217;m used to looking for the
symbol). I also don&#8217;t use his battery indicator, as I mostly work on AC power,
and when I&#8217;m not, the menu bar indicator is enough.</p>

<p>I&#8217;ve also modified the version control part of the prompt to use
<a href="http://vcprompt.com/">vcprompt</a>. Losh&#8217;s version is set up to do it using a custom Mercurial
extension he wrote if you&#8217;re in an Hg repo, and an entirely different method
for Git; it seemed clunky, and vcprompt works universally. vcprompt seems to be
a bit slower than Losh&#8217;s hg-prompt in Hg repos, but feels faster overall, and
I&#8217;m mostly dealing with Git, so it&#8217;s an acceptable tradeoff.</p>

<p>By the way, Losh&#8217;s <a href="http://stevelosh.com/blog/">other articles</a> are also excellent. He&#8217;s got me
back using MacVim as my primary editor, now that I&#8217;ve taken the time to really
learn to customize it.</p>

<p>My modified version; you&#8217;ll need to use <a href="https://github.com/robbyrussell/oh-my-zsh">oh-my-zsh</a> and change the
extension to <code>.zsh-theme</code> if you want to use it.</p>

<div><script src='https://gist.github.com/1294616.js?file='></script>
<noscript><pre><code>function virtualenv_info {
    [ $VIRTUAL_ENV ] &amp;&amp; echo '('`basename $VIRTUAL_ENV`') '
}

function vcprompt_info {
    vcprompt --format-git &quot;on ± %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%a%{$reset_color%}&quot; \
             --format-hg  &quot;on ☿ %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%{$reset_color%}&quot; \
             --format    &quot;on %s %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%{$reset_color%}&quot;
}

function box_name {
    [ -f ~/.box-name ] &amp;&amp; cat ~/.box-name || hostname -s
}

PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}$(box_name)%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%} $(vcprompt_info)
$(virtualenv_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%# '

local return_status=&quot;%{$fg[red]%}%(?..✘)%{$reset_color%}&quot;
RPROMPT='${return_status}%{$reset_color%}'</code></pre></noscript></div>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[It Is Still a Kitten.]]></title>
    <link href="http://blog.munge.net/2011/08/it-is-still-a-kitten/"/>
    <updated>2011-08-26T13:58:22-05:00</updated>
    <id>http://blog.munge.net/2011/08/it-is-still-a-kitten</id>
    <content type="html"><![CDATA[<p>But a larger one. Her name is now <strong>Sen</strong>.</p>

<p><img src="http://blog.munge.net/images/2011/sen-couch.jpg" title="Look, it is Sen!" ></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[It Is a Kitten.]]></title>
    <link href="http://blog.munge.net/2011/07/it-is-a-kitten/"/>
    <updated>2011-07-18T10:21:00-05:00</updated>
    <id>http://blog.munge.net/2011/07/it-is-a-kitten</id>
    <content type="html"><![CDATA[<p><img src="http://blog.munge.net/images/2011/sen-sprawl.jpg" title="Careful, she will bite your ear." ></p>

<p>She does not yet have a name.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[LP: Stuntman]]></title>
    <link href="http://blog.munge.net/2010/12/lp-stuntman/"/>
    <updated>2010-12-28T10:26:00-06:00</updated>
    <id>http://blog.munge.net/2010/12/lp-stuntman</id>
    <content type="html"><![CDATA[<p>At the SA forums, TyrantSabre is doing a <a href="http://forums.somethingawful.com/showthread.php?threadid=3359792">fantastic video Let’s Play</a> of the Stuntman series of games, notorious for being a great idea ruined by one of the most frustrating and infuriating implementations ever. Watch it!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Music of 2010]]></title>
    <link href="http://blog.munge.net/2010/12/music-of-2010/"/>
    <updated>2010-12-27T10:29:00-06:00</updated>
    <id>http://blog.munge.net/2010/12/music-of-2010</id>
    <content type="html"><![CDATA[<p>My annual <em>(note: not actually annual)</em> non-definitive list of albums I liked
from the last year.</p>

<ul>
<li>Amanda Palmer, <em>Amanda Palmer Performs the Popular Hits of Radiohead on Her
Magical Ukelele</em>. This shouldn&#8217;t work as anything but a stunt, but it
actually does.</li>
<li>Arcade Fire, <em>The Suburbs.</em> The album I&#8217;d hoped <em>Neon Bible</em> would be.</li>
<li>The Books, <em>The Way Out</em>. This group may be the canonical example of
how I love <a href="http://www.youtube.com/watch?v=7pysC3hNAhE">things</a> that
almost nobody else I know would like, but those people are missing out.</li>
<li>Caravan Palace, <em>Dragons</em>. French electro-jazz that sounds like Benoît
Charest crossed with Daft Punk.</li>
<li>Cee-Lo Green, <em>The Lady Killer</em>. &#8220;Fuck You&#8221; got all the attention, but
the rest of the album is just as good. Gnarls Barkley is great, but
I really prefer his solo work (see also <em>&#8230;Is the Soul Machine)</em>.</li>
<li>Childish Gambino, <em>I am Just a Rapper, I am Just a Rapper 2, Culdesac</em>. The
rap alias of actor Donald Glover, and legitimately great work.</li>
<li>Das Racist, <em>Sit Down, Man</em>. It&#8217;s a shame that most people will only ever
know them for the novelty/parody &#8220;Combination Pizza Hut &amp; Taco Bell&#8221;. Those
people are missing out on some of the cleverest rap around. Not recommended
for people who take music too seriously, or those who insist that music not
be taken seriously.</li>
<li>Girl Talk, <em>All Day</em>. He&#8217;s getting better; this album sounds more like
a composition than his previous effort&#8217;s (brilliant) stunt.</li>
<li>Janelle Monáe, <em>The ArchAndroid</em>. Like a lot of people, I found out about
her thanks to her brilliant
<a href="http://www.youtube.com/watch?v=vMyc148Do_Q">Letterman performance</a>. James
Brown meets Sun Ra meets Prince meets Philip Dick.</li>
<li>Mumford &amp; Sons, <em>Sigh No More</em>. Describing this as folk-rock feels like it
would give the wrong impression. Go listen to
<a href="http://www.youtube.com/watch?v=3KkUeRPjc-Y">&#8220;The Cave&#8221;</a>.</li>
<li>Run On Sentence, <em>You The Darkness &amp; Me</em>. An old friend of mine from
college; I had no idea he would turn out to be an
<a href="http://www.youtube.com/watch?v=cVKKkYfBuYQ">amazingly talented musician</a>.
There are too many bands that deserve so much more success and recognition
than they&#8217;ve had, and this is one of them.</li>
<li>Sage Francis, <em>Li(f)e</em>. The whole album is solid, but please please please
take a listen to the stunning Yann-Tiersen-backed
<a href="http://www.youtube.com/watch?v=VA8hzUDXvtk">&#8220;The Best of Times&#8221;</a>.</li>
<li>Sufjan Stevens, <em>The Age of Adz</em>. Well, that got weird quick, didn&#8217;t it?
Needs an editor badly, but mostly quite good.</li>
<li>The Weakerthans, <em>Live at the Burton Cummings Theatre</em>. Possibly my
favorite band, in their hometown, doing a perfect set.</li>
</ul>

]]></content>
  </entry>
  
</feed>

