<?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>hocuspokus &#187; os x</title>
	<atom:link href="http://hocuspokus.net/tag/os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:40:43 +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>Installing RMagick on Snow Leopard /&#160;Leopard</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard#comments</comments>
		<pubDate>Sat, 06 Mar 2010 17:15:38 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow-leopard]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=420</guid>
		<description><![CDATA[UPDATE: After using this for a little, i&#8217;ve discovered that there&#8217;s a small problem with the install script, it does not include the ghostscript fonts (for use with ImageMagick) properly. I&#8217;ve forked the repository and applied a fix (http://github.com/dazoakley/ImageMagick-sl) - &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&#38;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> After using this for a little, i&#8217;ve discovered that there&#8217;s a small problem with the install script, it does not include the ghostscript fonts (for use with ImageMagick) properly.  I&#8217;ve forked the repository and applied a fix (<a href="http://github.com/dazoakley/ImageMagick-sl">http://github.com/dazoakley/ImageMagick-sl</a>) - use this until masterkain accepts the change. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p>This used to be quite a complicated task to install ImageMagick and RMagick from source, but these days (thanks to some great work by others) it&#8217;s a piece of cake&#8230;</p>

<p>First install ImageMagick using this install script hosted on github (<a href="http://github.com/masterkain/ImageMagick-sl">http://github.com/masterkain/ImageMagick-sl</a>):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src
git clone git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>masterkain<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-sl.git
<span style="color: #7a0874; font-weight: bold;">cd</span> ImageMagick-sl
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x install_im.sh
<span style="color: #c20cb9; font-weight: bold;">sh</span> install_im.sh</pre></div></div>


<p>Now simply sit back and wait. (Oh, you&#8217;ll need to enter your password at some points as the libraries are installed into <code>/usr/local</code>).</p>

<p>Then, once that&#8217;s done, RMagick is installed by:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> rmagick</pre></div></div>


<p>Simples. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Add Git and SVN Branch to Bash&#160;Prompt</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:58:06 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=352</guid>
		<description><![CDATA[EDIT: (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230; I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea. But as &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&#38;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT:</strong> (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230;</p>

<p>I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea.  But as I&#8217;m now using git and svn a lot more these days (fingers crossed i&#8217;ll be totally free of cvs soon!) I thought it was about time I pulled my finger out.</p>

<p>So here&#8217;s the end goal, in a normal directory, we just get a normal bash promt, but in a directory controlled by git or svn, we also get an addition telling us the source control tool in use and the current branch:</p>

<p><img src="http://hocuspokus.net/wp-content/uploads/2009/07/git_svn_bash_terminal.png" alt="git_svn_bash_terminal" title="git_svn_bash_terminal" width="500" height="305" class="aligncenter size-full wp-image-358" /></p>

<p>So, fire up yer terminal and add the following to your <code>.profile</code>, <code>.bash_profile</code> or <code>.bashrc</code> (whichever one you use):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">parse_git_branch <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	git name-rev HEAD <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s#HEAD\ \(.*\)# (git::\1)#'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_branch<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	parse_svn_url <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s#^'</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$(parse_svn_repository_root)</span>&quot;</span><span style="color: #ff0000;">'##g'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print &quot; (svn::&quot;$1&quot;)&quot; }'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_url<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^URL: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_repository_root<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^Repository Root: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">BLACK</span>=<span style="color: #ff0000;">&quot;\[\033[0;38m\]&quot;</span>
<span style="color: #007800;">RED</span>=<span style="color: #ff0000;">&quot;\[\033[0;31m\]&quot;</span>
<span style="color: #007800;">RED_BOLD</span>=<span style="color: #ff0000;">&quot;\[\033[01;31m\]&quot;</span>
<span style="color: #007800;">BLUE</span>=<span style="color: #ff0000;">&quot;\[\033[01;34m\]&quot;</span>
<span style="color: #007800;">GREEN</span>=<span style="color: #ff0000;">&quot;\[\033[0;32m\]&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$BLACK</span>[ \u@<span style="color: #007800;">$RED</span>\h <span style="color: #007800;">$GREEN</span>\w<span style="color: #007800;">$RED_BOLD</span><span style="color: #000099; font-weight: bold;">\$</span>(parse_git_branch)<span style="color: #000099; font-weight: bold;">\$</span>(parse_svn_branch)<span style="color: #007800;">$BLACK</span> ] &quot;</span></pre></div></div>


<p>Simples.  Now just open up a new terminal and move into a project directory using svn or git. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trash Stuff From the Command&#160;Line</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine#comments</comments>
		<pubDate>Mon, 26 May 2008 14:22:36 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=147</guid>
		<description><![CDATA[A great little command-line tool for Leopard: osx-trash manipulates the Mac OS X trash from the command line, just like the Finder does. It uses AppleScript via Scripting Bridge on top of to communicate with the Finder. You can move &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&#38;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A great little command-line tool for Leopard:</p>

<blockquote>
  <p><code>osx-trash</code> manipulates the Mac OS X trash from the command line, just like the Finder does. It uses AppleScript via Scripting Bridge on top of to communicate with the Finder. You can move files to the trash, empty the trash, and list items currently in the trash.</p>
</blockquote>

<p><a href="http://www.dribin.org/dave/osx-trash/" class="via">project page</a> <a href="http://www.dribin.org/dave/blog/archives/2008/05/24/osx_trash/" class="via">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unix&#160;Toolbox</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox#comments</comments>
		<pubDate>Sun, 23 Mar 2008 11:56:50 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/03/23/unix-toolbox/</guid>
		<description><![CDATA[Found this via a post on Digg. A very useful read if you want to get some more advanced things done in Unix. This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&#38;seed_title=Unix%26%23160%3BToolbox">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Found this via a <a href="http://digg.com/linux_unix/Biggest_Unix_Cheat_Sheet">post on Digg</a>.  A very useful read if you want to get some more advanced things done in Unix.</p>

<blockquote>
  <p>This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.</p>
</blockquote>

<p><a href="http://cb.vu/unixtoolbox.xhtml" class="via">full article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Funix-toolbox&amp;seed_title=Unix%26%23160%3BToolbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing Rails Applications on Mac OS X&#160;Leopard</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fdeveloping-rails-applications-on-mac-os-x-leopard&amp;seed_title=Developing+Rails+Applications+on+Mac+OS+X%26%23160%3BLeopard</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fdeveloping-rails-applications-on-mac-os-x-leopard&amp;seed_title=Developing+Rails+Applications+on+Mac+OS+X%26%23160%3BLeopard#comments</comments>
		<pubDate>Sun, 16 Mar 2008 11:11:42 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/03/16/developing-rails-applications-on-mac-os-x-leopard/</guid>
		<description><![CDATA[First in a series of three articles from Apple on Ruby on Rails development on Mac OS X Leopard. Definitely worth a bookmark. Ruby on Rails is a popular and powerful open source web framework for rapidly creating high-quality web &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fdeveloping-rails-applications-on-mac-os-x-leopard&#38;seed_title=Developing+Rails+Applications+on+Mac+OS+X%26%23160%3BLeopard">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First in a series of three articles from Apple on Ruby on Rails development on Mac OS X Leopard.  Definitely worth a bookmark.</p>

<blockquote>
  <p>Ruby on Rails is a popular and powerful open source web framework for rapidly creating high-quality web applications to help you keep up with the speed of the Web. Rails is thriving on Mac OS X, and Leopard comes pre-installed with Ruby, Rails, Mongrel, Capistrano, Subversion, and other tools that help to streamline the development and deployment of Rails applications. In addition, the Organizer feature of XCode 3.0 keeps your development workflow efficient.</p>
  
  <p>This article gives you a full tour of Ruby on Rails 2.0 on Leopardâ€”starting with building a web application using the latest Rails features with Xcode 3.0, and finishing with deploying the application to a production server running Leopard Server. Along the way we&#8217;ll explore unique features and benefits that Leopard brings to the party. In the end you&#8217;ll be better equipped to consider the advantages of powering your web application with Rails on Leopard.</p>
  
  <p>This is the first in a series of three articles:</p>
  
  <ul>
  <li>This article on Development, where you learn to build a basic RESTful Rails application using Xcode 3.0;</li>
  <li>Customization, where we discuss working with views and web forms, adding AJAX support, and supporting an iPhone interface;</li>
  <li>Deployment, where we set up version control, write a Capistrano recipe, and deploy on Leopard Server.</li>
  </ul>
  
  <p>Together they will give you a great start in working with Rails on Mac OS X Leopard.</p>
</blockquote>

<p><a href="http://developer.apple.com/tools/developonrailsleopard.html" class="via">full article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F03%2Fdeveloping-rails-applications-on-mac-os-x-leopard&amp;seed_title=Developing+Rails+Applications+on+Mac+OS+X%26%23160%3BLeopard/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hiding Keynote&#160;Presentations</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fhiding-keynote-presentations&amp;seed_title=Hiding+Keynote%26%23160%3BPresentations</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fhiding-keynote-presentations&amp;seed_title=Hiding+Keynote%26%23160%3BPresentations#comments</comments>
		<pubDate>Tue, 29 Jan 2008 13:09:02 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iwork]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/29/hiding-keynote-presentations/</guid>
		<description><![CDATA[I don&#8217;t give many presentations these days, but this is a great tip: If you give many presentations on the Mac, chances are you&#8217;re using Apple&#8217;s Keynote presentation software. One cool feature in Keynote is the ability to demo something &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fhiding-keynote-presentations&#38;seed_title=Hiding+Keynote%26%23160%3BPresentations">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t give many presentations these days, but this is a great tip:</p>

<blockquote>
  <p>If you give many presentations on the Mac, chances are you&#8217;re using Apple&#8217;s Keynote presentation software. One cool feature in Keynote is the ability to demo something on your Mac without giving away your next slide or notes. When you&#8217;re in the middle of a presentation, just hit the &#8220;h&#8221; key on your keyboard. This will hide the entire Keynote application and show your desktop.</p>
  
  <p>When you press the h key, the Keynote icon in the dock will change and include a play button. When you want to resume your presentation, just click the Keynote icon in the dock.</p>
</blockquote>

<div style="text-align:center;"><img src="http://hocuspokus.net/wp-content/uploads/2008/01/keynote-icon-in-dock.png" alt="keynote_icon_in_dock.png" border="0" width="353" height="87" /></div>

<p><a href="http://feeds.tuaw.com/~r/weblogsinc/tuaw/~3/223758635/" class="via">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fhiding-keynote-presentations&amp;seed_title=Hiding+Keynote%26%23160%3BPresentations/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is the MacBook Air THAT&#160;Bad?!?</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fis-the-macbook-air-that-bad&amp;seed_title=Is+the+MacBook+Air+THAT%26%23160%3BBad%3F%21%3F</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fis-the-macbook-air-that-bad&amp;seed_title=Is+the+MacBook+Air+THAT%26%23160%3BBad%3F%21%3F#comments</comments>
		<pubDate>Fri, 25 Jan 2008 20:34:33 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/25/is-the-macbook-air-that-bad/</guid>
		<description><![CDATA[Finally, a common sense response to all of these MacBook Air bashing articles. I admit - I don&#8217;t want one, i&#8217;d rather have a &#8216;regular&#8217; MacBook or a MacBook Pro, but there are people out there that would want something &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fis-the-macbook-air-that-bad&#38;seed_title=Is+the+MacBook+Air+THAT%26%23160%3BBad%3F%21%3F">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally, a <a href="http://blogs.cnet.com/8301-13509_1-9854634-20.html?part=rss&amp;tag=feed&amp;subj=TheMacalope:AnAppleblog">common sense</a> response to all of these MacBook Air bashing articles.  I admit - I don&#8217;t want one, i&#8217;d rather have a &#8216;regular&#8217; MacBook or a MacBook Pro, but there are people out there that would want something like this&#8230;</p>

<blockquote>
  <p>Direct from the Canadian Ministry of Silly Punditry we learn that the MacBook Air may increase risk of laptop loss (tip o&#8217; the antlers to Colin Morton).</p>
  
  <p>Indeed. The only way to ensure your laptop won&#8217;t get stolen is to buy big fat honkin&#8217; ugly ones.</p>
  
  <p>But, clearly, neither of those beats this gem from PC World&#8217;s Mike Barton:</p>
  
  <p><a href="http://blogs.pcworld.com/staffblog/archives/006314.html">MacBook Air Amiss: Time to License Mac OS X?</a></p>
  
  <p>Good question! Like &#8220;I Have Stubbed My Toe And Find It Painful: Time to Commit Suicide?&#8221;</p>
</blockquote>

<p><a href="http://daringfireball.net/linked/2008/january#thu-24-macalope" class="via">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fis-the-macbook-air-that-bad&amp;seed_title=Is+the+MacBook+Air+THAT%26%23160%3BBad%3F%21%3F/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetNewsWire&#8217;s Now&#160;Freeware</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fnetnewswires-now-freeware&amp;seed_title=NetNewsWire%26%238217%3Bs+Now%26%23160%3BFreeware</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fnetnewswires-now-freeware&amp;seed_title=NetNewsWire%26%238217%3Bs+Now%26%23160%3BFreeware#comments</comments>
		<pubDate>Thu, 10 Jan 2008 18:33:57 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[snippets]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[netnewswire]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/10/netnewswires-now-freeware/</guid>
		<description><![CDATA[This is great news - NetNewsWire, the best news reader on the Mac is now completely free! Not just the &#8216;Lite&#8217; version anymore, but the full product! This is my default (and only) news reader on the Mac. Thereâ€™s a &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fnetnewswires-now-freeware&#38;seed_title=NetNewsWire%26%238217%3Bs+Now%26%23160%3BFreeware">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is great news - <a href="http://www.newsgator.com/Individuals/NetNewsWire/">NetNewsWire</a>, the best news reader on the Mac is now completely free!  Not just the &#8216;Lite&#8217; version anymore, but the full product!  This is my default (and only) news reader on the Mac.</p>

<blockquote>
  <p>Thereâ€™s a <a href="http://www.newsgator.com/CompanyInfo/FreeClientFAQ.aspx">FAQ</a> that explains a bunch of thingsâ€”Iâ€™m not going to repeat it all here.</p>
  
  <p>But I will say that, for me personally, this is a dream come true. Every developer wants to be able to work on the software they love, make a living at it, and give it to the world for free.</p>
  
  <p>Usually you get to pick two out of threeâ€”if youâ€™re lucky. Me, I get all three.</p>
</blockquote>

<p><a href="http://inessential.com/?comments=1&#038;postid=3461" class="via">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fnetnewswires-now-freeware&amp;seed_title=NetNewsWire%26%238217%3Bs+Now%26%23160%3BFreeware/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Shared-Key Setup - SSH Logins Without&#160;Passwords</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords#comments</comments>
		<pubDate>Thu, 10 Jan 2008 17:56:59 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/10/ssh-shared-key-setup-ssh-logins-without-passwords/</guid>
		<description><![CDATA[SSH is a great tool for remotely accessing another machine, but entering your password every time you log into a remote box can be a pain if you would like to set-up some background scripts to connect to a server &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&#38;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SSH is a great tool for remotely accessing another machine, but entering your password every time you log into a remote box can be a pain if you would like to set-up some background scripts to connect to a server and do something (i.e. a backup script running as a cron job).  Here&#8217;s how I set-up my Mac to be able to log into my server without the need for a password to be entered each time - the instructions should be good for any variant of Unix/Linux, but you need to take into account path names etc. on your machine.</p>

<p><span id="more-97"></span></p>

<p>The first thing we will do is generate a key for the SHH version 1 protocol (just in case you are connecting to an older machine):</p>

<pre><code>ssh-keygen -t rsa1
</code></pre>

<p>SSH-Keygen will respond with something like the following:</p>

<pre><code>Generating public/private rsa1 key pair.
Enter file in which to save the key (/Users/daz/.ssh/identity):
</code></pre>

<p>At this point hit enter then you will be prompted for a passphrase - this is a form of password that will be used to generate your unique keys and can contain any set of characters and spaces - something like <em>&quot;I&#8217;m really liking all of this geeky nonsense!&quot;</em> is a perfectly acceptable passphrase - just whatever you do, don&#8217;t use an empty passphrase.  After entering (and confirming) your passphrase you will get the following output:</p>

<pre><code>Your identification has been saved in /Users/daz/.ssh/identity.
Your public key has been saved in /Users/daz/.ssh/identity.pub.
</code></pre>

<p>This means that our identity keys have been generated.  Now we just need to create a pair of keys for the SSH2 protocol - you can use the same or different passphrases for these keys - it&#8217;s up to you&#8230;</p>

<pre><code>ssh-keygen -t dsa
</code></pre>

<p>Then</p>

<pre><code>ssh-keygen -t rsa
</code></pre>

<p>You should now have three sets of keys in your <code>~/.ssh</code> directory, the ones with the .pub extension are your public keys (what we need to put on your other machines) and the others are your private keys - these must be kept safe!</p>

<p>So, let&#8217;s use <code>scp</code> to copy the files across:</p>

<pre><code>scp ~/.ssh/*.pub daz@MyServer:/home/daz/
</code></pre>

<p>Then log into your server using <code>ssh</code> and issue the following commands:</p>

<pre><code>cat identity.pub &gt;&gt;~/.ssh/authorized_keys
cat id_dsa.pub &gt;&gt;~/.ssh/authorized_keys
cat id_rsa.pub &gt;&gt;~/.ssh/authorized_keys
rm identity.pub id_dsa.pub id_rsa.pub
</code></pre>

<p>This populates the <code>authorized_keys</code> file on our server with the three public keys that we have just transferred and then removes them as they&#8217;re no longer needed here.</p>

<p>That&#8217;s everything done, now all we have to do is log out of our server, and then try and log back in via ssh - a password should no longer be required!<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>This isn&#8217;t strictly true - on OS X it asks you for the <code>id_rsa</code> passphrase that we established before, you will need to enter this, but you can then have it stored in the keychain for hassle free use from here.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fssh-shared-key-setup-ssh-logins-without-passwords&amp;seed_title=SSH+Shared-Key+Setup+-+SSH+Logins+Without%26%23160%3BPasswords/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Better Ls for Mac OS&#160;X</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fa-better-ls-for-mac-os-x&amp;seed_title=A+Better+Ls+for+Mac+OS%26%23160%3BX</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fa-better-ls-for-mac-os-x&amp;seed_title=A+Better+Ls+for+Mac+OS%26%23160%3BX#comments</comments>
		<pubDate>Fri, 04 Jan 2008 20:34:48 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[colour scheme]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[ego]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2008/01/04/a-better-ls-for-mac-os-x/</guid>
		<description><![CDATA[I&#8217;m a bit of a command-line freak and like to spend a fair amount of time with the terminal open&#8230; As such I like to spend a small amount of time getting the terminal set-up nicely. Other than changing the &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fa-better-ls-for-mac-os-x&#38;seed_title=A+Better+Ls+for+Mac+OS%26%23160%3BX">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a bit of a command-line freak and like to spend a fair amount of time with the terminal open&#8230; As such  I like to spend a small amount of time getting the terminal set-up nicely.  Other than changing the default colour scheme and font, one (slightly) more drastic change is to replace the standard implementation of <code>ls</code> for one that is slightly more configurable.</p>

<p>The default <code>ls</code> on OS X comes from BSD and compared to the GNU/Linux alternative is slightly lacking when it comes to comes to changing how things look - so what I like to do is replace it with the GNU <code>ls</code> available in <a href="http://www.macports.org/">MacPorts</a> - this allows me to get a terminal setup like below:</p>

<div style="text-align:center;"><img src="http://hocuspokus.net/wp-content/uploads/2008/01/terminal.png" alt="terminal.png" /></div>

<p><span id="more-96"></span></p>

<p>To get this done is pretty simple, once you have MacPorts set up correctly (if you can type <code>man port</code> and get a manual page you&#8217;re ready), just run the following command:</p>

<pre><code>sudo port install coreutils +with_default_names
</code></pre>

<p>This installs the &#8216;GNU File, Shell, and Text utilities&#8217; which <code>ls</code> is part of - the extra option at the end <code>+with_default_names</code> makes it override (only override - not replace, this is totally removable) the default <code>ls</code> and other tools otherwise they will have a &#8216;g&#8217; prefix - i.e. <code>ls</code> would be <code>gls</code>.</p>

<p>Next we add some extra configuration to our <code>~/.bash_profile</code> file (i&#8217;ll include my MacPorts config in case you get stuck above)&#8230;</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># MacPorts</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #007800;">$PATH</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">MANPATH</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">man</span>:<span style="color: #007800;">$MANPATH</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Terminal colours (after installing GNU coreutils)</span>
<span style="color: #007800;">NM</span>=<span style="color: #ff0000;">&quot;\[\033[0;38m\]&quot;</span> <span style="color: #666666; font-style: italic;">#means no background and white lines</span>
<span style="color: #007800;">HI</span>=<span style="color: #ff0000;">&quot;\[\033[0;37m\]&quot;</span> <span style="color: #666666; font-style: italic;">#change this for letter colors</span>
<span style="color: #007800;">HII</span>=<span style="color: #ff0000;">&quot;\[\033[0;31m\]&quot;</span> <span style="color: #666666; font-style: italic;">#change this for letter colors</span>
<span style="color: #007800;">SI</span>=<span style="color: #ff0000;">&quot;\[\033[0;33m\]&quot;</span> <span style="color: #666666; font-style: italic;">#this is for the current directory</span>
<span style="color: #007800;">IN</span>=<span style="color: #ff0000;">&quot;\[\033[0m\]&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$NM</span>[ <span style="color: #007800;">$HI</span>\u <span style="color: #007800;">$HII</span>\h <span style="color: #007800;">$SI</span>\w<span style="color: #007800;">$NM</span> ] <span style="color: #007800;">$IN</span>&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;dumb&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LS_OPTIONS</span>=<span style="color: #ff0000;">'--color=auto'</span>
    <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dircolors</span> ~<span style="color: #000000; font-weight: bold;">/</span>.dir_colors<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Useful aliases</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls $LS_OPTIONS -hF'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">'ls $LS_OPTIONS -lhF'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">l</span>=<span style="color: #ff0000;">'ls $LS_OPTIONS -lAhF'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> cd..=<span style="color: #ff0000;">&quot;cd ..&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">c</span>=<span style="color: #ff0000;">&quot;clear&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">e</span>=<span style="color: #ff0000;">&quot;exit&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ssh</span></span>=<span style="color: #ff0000;">&quot;ssh -X&quot;</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> ..=<span style="color: #ff0000;">&quot;cd ..&quot;</span></pre></td></tr></table></div>


<p>Then finally we need to create a file called <code>.dir_colors</code> in our home directory that allows us to configure the colours used by <code>ls</code>:</p>

<pre><code>touch ~/.dir_colors
</code></pre>

<p>Then add the contents of the file here:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Configuration file for dircolors, a utility to help you set the</span>
<span style="color: #666666; font-style: italic;"># LS_COLORS environment variable used by GNU ls with the --color option.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the</span>
<span style="color: #666666; font-style: italic;"># slackware version of dircolors) are recognized but ignored.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Below, there should be one TERM entry for each termtype that is colorizable</span>
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM xterm-color
TERM xterm-debian
TERM rxvt
TERM <span style="color: #c20cb9; font-weight: bold;">screen</span>
TERM screen-w
TERM vt100
&nbsp;
<span style="color: #666666; font-style: italic;"># Below are the color init strings for the basic file types. A color init</span>
<span style="color: #666666; font-style: italic;"># string consists of one or more of the following numeric codes:</span>
<span style="color: #666666; font-style: italic;"># Attribute codes:</span>
<span style="color: #666666; font-style: italic;"># 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed</span>
<span style="color: #666666; font-style: italic;"># Text color codes:</span>
<span style="color: #666666; font-style: italic;"># 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white</span>
<span style="color: #666666; font-style: italic;"># Background color codes:</span>
<span style="color: #666666; font-style: italic;"># 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white</span>
NORMAL 00	<span style="color: #666666; font-style: italic;"># global default, although everything should be something.</span>
FILE 00 	<span style="color: #666666; font-style: italic;"># normal file</span>
DIR 01;<span style="color: #000000;">36</span> 	<span style="color: #666666; font-style: italic;"># directory</span>
LINK 01;<span style="color: #000000;">37</span> 	<span style="color: #666666; font-style: italic;"># symbolic link.  (If you set this to 'target' instead of a</span>
           	<span style="color: #666666; font-style: italic;"># numerical value, the color is as for the file pointed to.)</span>
FIFO <span style="color: #000000;">40</span>;<span style="color: #000000;">33</span>	<span style="color: #666666; font-style: italic;"># pipe</span>
SOCK 01;<span style="color: #000000;">35</span>	<span style="color: #666666; font-style: italic;"># socket</span>
DOOR 01;<span style="color: #000000;">35</span>	<span style="color: #666666; font-style: italic;"># door</span>
BLK <span style="color: #000000;">40</span>;<span style="color: #000000;">33</span>;01	<span style="color: #666666; font-style: italic;"># block device driver</span>
CHR <span style="color: #000000;">40</span>;<span style="color: #000000;">33</span>;01 	<span style="color: #666666; font-style: italic;"># character device driver</span>
ORPHAN <span style="color: #000000;">40</span>;<span style="color: #000000;">31</span>;01 <span style="color: #666666; font-style: italic;"># symlink to nonexistent file</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># This is for files with execute permission:</span>
EXEC 01;<span style="color: #000000;">35</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># List any file extensions like '.gz' or '.tar' that you would like ls</span>
<span style="color: #666666; font-style: italic;"># to colorize below. Put the extension, a space, and the color init string.</span>
<span style="color: #666666; font-style: italic;"># (and any comments you want to add after a '#')</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># If you use DOS-style suffixes, you may want to uncomment the following:</span>
<span style="color: #666666; font-style: italic;">#.cmd 01;32 # executables (bright green)</span>
<span style="color: #666666; font-style: italic;">#.exe 01;32</span>
<span style="color: #666666; font-style: italic;">#.com 01;32</span>
<span style="color: #666666; font-style: italic;">#.btm 01;32</span>
<span style="color: #666666; font-style: italic;">#.bat 01;32</span>
&nbsp;
.tar 01;<span style="color: #000000;">31</span> <span style="color: #666666; font-style: italic;"># archives or compressed (bright red)</span>
.tgz 01;<span style="color: #000000;">31</span>
.arj 01;<span style="color: #000000;">31</span>
.taz 01;<span style="color: #000000;">31</span>
.lzh 01;<span style="color: #000000;">31</span>
.zip 01;<span style="color: #000000;">31</span>
.z   01;<span style="color: #000000;">31</span>
.Z   01;<span style="color: #000000;">31</span>
.gz  01;<span style="color: #000000;">31</span>
.bz2 01;<span style="color: #000000;">31</span>
.deb 01;<span style="color: #000000;">31</span>
.rpm 01;<span style="color: #000000;">31</span>
.jar 01;<span style="color: #000000;">31</span>
.dmg 01;<span style="color: #000000;">31</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># image formats</span>
.jpg 01;<span style="color: #000000;">35</span>
.png 01;<span style="color: #000000;">35</span>
.gif 01;<span style="color: #000000;">35</span>
.bmp 01;<span style="color: #000000;">35</span>
.ppm 01;<span style="color: #000000;">35</span>
.tga 01;<span style="color: #000000;">35</span>
.xbm 01;<span style="color: #000000;">35</span>
.xpm 01;<span style="color: #000000;">35</span>
.tif 01;<span style="color: #000000;">35</span>
.png 01;<span style="color: #000000;">35</span>
.mpg 01;<span style="color: #000000;">35</span>
.avi 01;<span style="color: #000000;">35</span>
.fli 01;<span style="color: #000000;">35</span>
.gl 01;<span style="color: #000000;">35</span>
.dl 01;<span style="color: #000000;">35</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># source code files</span>
.pl 00;<span style="color: #000000;">33</span>
.PL 00;<span style="color: #000000;">33</span>
.pm 00;<span style="color: #000000;">33</span>
.tt 00;<span style="color: #000000;">33</span>
.yml 00;<span style="color: #000000;">33</span>
.sql 00;<span style="color: #000000;">33</span>
.html 00;<span style="color: #000000;">33</span>
.css 00;<span style="color: #000000;">33</span>
.js 00;<span style="color: #000000;">33</span></pre></td></tr></table></div>


<p>Finally, all you need to do is close and re-open the Terminal.  Now we should be sorted. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F01%2Fa-better-ls-for-mac-os-x&amp;seed_title=A+Better+Ls+for+Mac+OS%26%23160%3BX/feed</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->