<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>greenideas &#187; zsh</title>
	<atom:link href="http://mwhenry.com/blog/tag/zsh/feed/" rel="self" type="application/rss+xml" />
	<link>http://mwhenry.com/blog</link>
	<description>A blog by Matt Henry</description>
	<lastBuildDate>Fri, 02 Jul 2010 23:26:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>zsh: Scratching a geeky itch</title>
		<link>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/</link>
		<comments>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:47:50 +0000</pubDate>
		<dc:creator>Matt Henry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[irb]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://mwhenry.com/?p=40</guid>
		<description><![CDATA[I’ll apologize right out of the gate for the resemblance this post bears to one Rafe Colburn made today. We sit across from each other at work, and we’re both diving into zsh at the moment, so cross-pollination was probably inevitable. The other day, I switched my shell from bash to zsh. Just like Rafe, [...]]]></description>
			<content:encoded><![CDATA[<p>I’ll apologize right out of the gate for the resemblance this post bears to <a href="http://rc3.org/2009/04/04/my-zsh-adventure/">one Rafe Colburn made today</a>. We sit across from each other at work, and we’re both diving into zsh at the moment, so cross-pollination was probably inevitable.</p>
<p>The other day, I switched my shell from bash to zsh. Just like Rafe, I read the <a href="http://friedcpu.wordpress.com/2007/07/24/zsh-the-last-shell-youll-ever-need/">Fried CPU post about zsh</a>, and was convinced to give it a whirl. It’s been in the back of my mind for a while now, since I’ve notice that a lot of people whom I respect (<a href="http://railscasts.com">Ryan Bates</a>, for one) are using it, but the concise list of really powerful features in the Fried CPU article was the tipping point. I’ll admit that, never having switched shells before, I thought it was going to be a heck of a lot more complicated than just typing <code>chsh</code> and replacing “/bin/bash” with “/bin/zsh” in the config file that pops up. Had I known it would be that easy, I would’ve tried it a lot sooner.</p>
<p>At first, I tried copying huge chunks out of the zshrc &amp; other zsh config files that Joe Ferris maintains in a <a href="http://github.com/jferris/config_files/tree/master">repo at Github</a>, but eventually decided I’d get more out of this experiment if I took more bite-sized chunks out of other peoples configurations, and only added them to my own when I understood what they were doing.</p>
<p>That’s when things got out of hand.</p>
<p>When I was copying bits of my old bash configs over to my zshrc, I noticed how disorganized all of my dotfiles were–not just the shell ones, but my irbrc, and vim &amp; emacs configs, etc., etc., etc. So I  basically decided to scrap all of them and take the same approach to them as I was taking with my shell configs. So basically, I’m starting over with Unix, and slowly rebuilding what I’m hoping will be a super-organized and super-optimized environment for future work and play.</p>
<p>If you’re interested in seeing how things develop, you can follow along with my <a href="http://github.com/greenideas/dotfiles/tree/master">dotfiles repo on Github</a>. But what I’m sure will be infinitely more interesting will be to start on your own adventure in Unix configuration. If you go down that road, here are some of the resources I’ve used in rebuilding my environment:</p>
<ul>
<li><a href="http://github.com/jferris/config_files/tree/master">Joe Ferris’s config_files repo</a>: I mentioned this before, but it’s worth mentioning again, due to its being awesome.
<li><a href="http://dotfiles.org/">dotfiles.org</a>: User-conributed dotfiles for just about every *nix-based utility that uses a text-based configuration file.</li>
<li><a href="http://giantrobots.thoughtbot.com/2008/12/23/script-console-tips">irb &amp; script/console tips</a>: Obviously these are only useful to Rubyists, but if you swing that way, theses are well worth checking out. Ever since I first saw the SQL generated by an ActiveRecord query show up in someone’s script/console, I’ve coveted that functionality. Dan Croak shows how it’s done.</li>
<li>Dr. Nic also has some <a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/">great irb tips</a></li>
<li>Finally, I cribbed a git-aware prompt from <a href="http://smartic.us/2009/04/02/more-git-prompt-goodies-with-zsh/">this screencast</a>. A very neat trick.</li>
</ul>
<p>So yeah, it’s been really fun getting back to basics with my Unix configs. That said, I have had one small hiccup in this process. After going through all of this with my OSX terminal, I went to switch my shiny new <a href="http://intranation.com/entries/2009/03/development-virtual-machines-os-x-using-vmware-and/">Ubuntu JeOS VM</a>’s shell over to zsh, but found that after doing so, my delete key wasn’t behaving like a backspace as it had been doing when I was using bash. Apparently this is a known issue when using zsh or screen over ssh. I still haven’t found a good workaround for this, and so am still using bash in Ubuntu.</p>
<p>All in all, switching from bash to zsh has been an extremely rewarding experience, and definitely one I’d recommend to anyone looking to change up their routine and learn something new and useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mwhenry.com/blog/2009/04/zsh-scratching-a-geeky-itch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
