<?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/"
	xmlns:go='http://ns.gigaom.com/'
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>GigaOM &#187; Apple</title>
	<atom:link href="http://gigaom.com/apple/tag/plist/feed/" rel="self" type="application/rss+xml" />
	<link>http://gigaom.com</link>
	<description></description>
	<lastBuildDate>Sun, 27 May 2012 04:22:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gigaom.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0db8f6557d022075dbbf010c54d46d93?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>GigaOM &#187; Apple</title>
		<link>http://gigaom.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gigaom.com/osd.xml" title="GigaOM" />
	<atom:link rel='hub' href='http://gigaom.com/?pushpress=hub'/>
		<item>
		<title>Terminal Tips: Using the Command Line With Style</title>
		<link>http://gigaom.com/apple/terminal-tips-using-the-command-line-with-style/</link>
		<comments>http://gigaom.com/apple/terminal-tips-using-the-command-line-with-style/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 15:00:27 +0000</pubDate>
		<dc:creator>Andrew Bednarz</dc:creator>
				<category><![CDATA[CNN Big Tech]]></category>
		<category><![CDATA[NYT Enterprise]]></category>
		<category><![CDATA[SYN Analysis]]></category>
		<category><![CDATA[SYN Feature Enterprise]]></category>
		<category><![CDATA[bash prompt]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[terminal.app]]></category>
		<category><![CDATA[visor]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=19907</guid>
		<description><![CDATA[As great and as easy as the OS X user interface is, sometimes it is quicker or necessary to jump into the deep dark bowels of your system on the command line. OS X ships with the very competent Terminal.app that allows easy access to this, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=172516&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="terminal_icon" src="http://gigapple.files.wordpress.com/2009/03/terminal_icon.png?w=240&h=240" alt="terminal_icon" width="240" height="240" class=" alignleft" /></p>
<p class="excerpt">As great and as easy as the OS X user interface is, sometimes it is quicker or necessary to jump into the deep dark bowels of your system on the command line. OS X ships with the very competent Terminal.app that allows easy access to this, but the default view into your machine is dull and boring. It doesn&#8217;t have to be. Here are a few tips to style things up a bit.</p>
<h3>Visor</h3>
<p>Visor has been <a title="A Look at Visor" href="http://gigaom.com/apple/a-look-at-visor/">mentioned</a> in the past here at TheAppleBlog, and for good reason. It works as an add-on to Terminal to give you a &#8216;quake-style&#8217; drop down HUD interface. You press the hotkey and a terminal drops down from out of nowhere in a fast, convenient, out-of-the-way manner &#8212; complete with tab support.</p>
<p>If you search for Visor on the web, you&#8217;ll most likely end up at its <a href="http://code.google.com/p/blacktree-visor/">Google Code page</a>, where it seems that the most up-to-date version is <em>1.5a1</em> from November 2007. Fear not, for Visor is still being developed and the latest version is actually <em>1.81</em>, released on March 5 of this year.</p>
<p>To download it you need to go its <a href="http://github.com/darwin/visor/tree/master">GitHub page</a> and click the link to the pre-compiled binary. Follow the <a title="README" href="http://github.com/darwin/visor/blob/a5248355731e27641fc7c8ef4f5bd002bea87260/README.markdown">instructions</a> to install it. 1.81 adds more options to play with, but most importantly for me, is that it enables full custom key-stroke support &#8212; so any keys defined in Terminal are usable in Visor. <span id="more-172516"></span></p>
<h3>Hiding Visor&#8217;s Terminal</h3>
<p>Because Visor hooks into the Terminal application, it needs to be running and cluttering up your dock and command-tab icons all the time. Fortunately, there is a nice hack that will get Visor running &#8216;invisibly&#8217; without any sign of Terminal.app running. This makes for a cleaner desktop experience while still leaving a terminal only one keystroke away.</p>
<p>To do this you need a <em>plist editor</em> &#8212; if you have the OS X Developer Tools installed you already have the Property List Editor app. If not you can download <a href="http://www.apple.com/downloads/macosx/development_tools/plisteditpro.html">PlistEditPro</a> which has a free trial period and will do the trick for you. The following steps assume you already have Visor installed and working.</p>
<ol>
<li>With Finder, show the package contents of <strong>~/Library/Application Support/SIMBL/Plugins/Visor.bundle</strong> (right click to access this option) and load the file <strong>Contents/Info.plist</strong> in your plist editor. From the root node, expand <code>SIMBLTargetApplications</code>, then <code>Item 1</code> and change <code>BundleIdentifier</code> from <code>com.apple.Terminal</code> to <code>com.apple.Terminal_Visor</code></li>
<li>Make a copy of Terminal.app that is in <strong>/Applications/Utilities</strong> and call this copy Terminal_Visor.app</li>
<li>With Finder, show the package contents of the new Terminal_Visor.app and open its <strong>Contents/Info.plist</strong> file in your plist editor. From the root node, change <code>CFBundleIdentifier</code> to <code>com.apple.Terminal_Visor</code>.</li>
<li>Run Terminal_Visor and make sure Visor works properly. Configure all Terminal preferences and settings to your liking. Right click on the Terminal_Visor dock icon and select <strong>Open At Login</strong> to make it starts up automatically.</li>
<li>With Finder, show the package contents of <strong>/Applications/Utilities/Terminal_Visor.app</strong> and open its <strong>Contents/Info.plist</strong> file in your plist editor. Add a new <code>Number</code> entry at the bottom called <code>LSUIElement</code> and set its value to <code>1</code>. (This entry can also be known by its descriptive name of <strong>&#8220;Application is agent (UIElement)&#8221;</strong>). Relaunch Terminal_Visor and there will be no sign that its running except when you press your Visor hotkey.</li>
</ol>
<p>Now you have less clutter with the same power. To make Terminal_Visor visible again (to change preferences) change the <code>LSUIElement</code> value back to <code>0</code> in its <strong>Info.plist</strong>. To quit Terminal_Visor when it is running, you can toggle the visor terminal with a hot-key and then press <strong>Command + Q</strong>.</p>
<h3>Colored Directory Listings</h3>
<p><img  title="picture-23" src="http://gigapple.files.wordpress.com/2009/03/picture-23.png?w=487&h=221" alt="picture-23" width="487" height="221" class=" alignleft" /></p>
<p>By default when you type the <code>ls</code> command you get a dull black and white listing. This is very old school and in this day and age we have the technological marvel of colored directory listings. This shows different file types in different colors, allowing you to be quickly informed with a simple glance. To enable support for this, all you need to do is create (or open it if it already exists) a file called <strong>~.bash_profile</strong> in a text editor (note the dot before the name &#8212; this is a hidden file). Add the following lines:</p>
<p><code>export CLICOLOR=1</code></p>
<p><code>export LSCOLORS=ExFxCxDxBxegedabagacad</code></p>
<p><code> </code></p>
<p>Start a new terminal session and, lo and behold, you have a colored directory listing. You can customize what colors are used by modifying the <strong>LSCOLORS</strong> variable, which defines what type of file is shown as a particular color. A nifty tool to help you come up with the appropriate value for this is the <a href="http://mipsisrisc.com/lscolors/">LSCOLORS Generator</a>.</p>
<h3>A More Useful Command Prompt</h3>
<p>When you start a terminal session you are normally greeted with a white prompt that looks something like <code>BedPro:~ Bed$</code>, where &#8220;BedPro&#8221; is your machine name, <em>&#8220;~&#8221;</em> is the currently directory you&#8217;re in and <em>&#8220;Bed&#8221;</em> is your user name. This can be changed to almost anything you like and it can be helpful to do so to quickly differentiate the prompt from command output, and to show more information such as the fully qualified current directory path (like <em>&#8220;UsersBedDocuments&#8221;</em> rather than just <em>&#8220;Documents&#8221;</em>). My prompt (see screenshot above) is separated from the last command output by a blank line, lists who I am on what machine, and the full directory path. Then I have a blank line to type at.</p>
<p>You can configure a custom prompt by creating (or editing, if it already exists) the text file <strong>~/.bash_profile</strong> and adding a line like mine:</p>
<p><code>export PS1="n[e[1;40;30m]u@h:wn&gt; [e[0m]"</code></p>
<p>The <code>u@h:w</code> gives me <code>username@host:fulldirectory</code> while the <code>n</code> is a newline. The other codes are the color definitions.</p>
<p>For a full list of codes and colors you can use, see <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html">Bash Prompt Escape Sequences</a> and <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html">Bash Prompt Colors</a>.</p>
<h3>Tweaking Colors</h3>
<p>Colors can be rendered in various ways by Terminal.app, so in addition to setting the <code>ls</code> and prompt colors in your .bash_profile, you may also need to tweak Terminal&#8217;s settings to achieve the results you like. These can be found in the Settings dialog. In particular I like to uncheck using bold fonts, and check using bright colors instead.</p>
<p><img  title="visor_settings" src="http://gigapple.files.wordpress.com/2009/03/visor_settings.png?w=584&h=455" alt="visor_settings" width="584" height="455" class=" alignleft" /></p>
<h3>Any other tips?</h3>
<p>Are there any other Terminal add-ons you use that are indispensable? Have any other tips for a more stylish experience? Let us know in the comments.</p>
<p><strong>Related research and analysis from GigaOM Pro:</strong><br />Subscriber content. <a href="http://pro.gigaom.com/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172516+terminal-tips-using-the-command-line-with-style&utm_content=bed42">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2011/03/why-ipad-2-will-lead-consumers-into-the-post-pc-era/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172516+terminal-tips-using-the-command-line-with-style&utm_content=bed42">Why iPad 2 Will Lead Consumers Into the Post-PC&nbsp;Era</a></li><li><a href="http://pro.gigaom.com/2011/03/the-near-term-evolution-of-social-commerce/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172516+terminal-tips-using-the-command-line-with-style&utm_content=bed42">The Near-Term Evolution of Social&nbsp;Commerce</a></li><li><a href="http://pro.gigaom.com/2011/02/content-farms-the-players-the-benefits-the-risks/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172516+terminal-tips-using-the-command-line-with-style&utm_content=bed42">Content Farms: The Players, The Benefits, The&nbsp;Risks</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=172516&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/terminal-tips-using-the-command-line-with-style/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/205e8de04de9d77f950d5e6d2eec961b?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">bed</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/03/terminal_icon.png?w=300" medium="image">
			<media:title type="html">terminal_icon</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/03/picture-23.png" medium="image">
			<media:title type="html">picture-23</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/03/visor_settings.png" medium="image">
			<media:title type="html">visor_settings</media:title>
		</media:content>
	</item>
		<item>
		<title>The Secrets Are Out Thanks To BlackTree</title>
		<link>http://gigaom.com/apple/the-secrets-are-out-thanks-to-blacktree/</link>
		<comments>http://gigaom.com/apple/the-secrets-are-out-thanks-to-blacktree/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 20:00:02 +0000</pubDate>
		<dc:creator>Bob Rudis</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[hidden settings]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[secrets]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=3650</guid>
		<description><![CDATA[(Let me preface this post with a warning that tweaking unpublished settings can break your system and applications.) While I am a fan of the Terminal, sometimes remembering (or Googling for) the proper &#8220;defaults write ...&#8221; undocumented setting to tweak a feature on a new build [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=171534&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://gigapple.files.wordpress.com/2008/07/secrets.png?w=128&h=134" alt="" title="secrets" width="128" height="134"  class=" alignleft" /><em>(Let me preface this post with a warning that tweaking unpublished settings can break your system and applications.)</em></p>
<p>While I am a fan of the Terminal, sometimes remembering (or Googling for) the proper &#8220;<code>defaults write ...</code>&#8221; undocumented setting to tweak a feature on a new build or a friend&#8217;s machine gets a bit annoying (mostly due to my increasingly old age&#8230;Hey! You, kids! Get off my lawn!). If you ever wanted the opportunity to really muck things up across your system and installed applications, then head on over to the <a href="http://secrets.blacktree.com/">&#8220;Secret&#8221; BlackTree page</a> (yes, the makers of the awesomeness that is QuickSilver) and grab a copy of their preference pane.</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/secrets-main-prefpane.png?w=500&h=419" alt="" title="secrets-main-prefpane" width="500" height="419"  class=" alignleft" /></div>
<p>Truth be told, I actually needed to change out the text on the login window on my Mac (for work) and did not remember the <code>/Library/Preferences/com.apple.loginwindow.plist</code> file or key for it and just happened to come across the Secrets update today. I was impressed at the extent of its database of settings for all sorts of apps and the fact that it figured out which apps I had installed (so it only showed relevant settings options).</p>
<p>An example of the non-deadly, application-usefulness of Secrets comes from its Twitterrific preferences pane:</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/secrets-twitterific.png?w=500&h=419" alt="" title="secrets-twitterific" width="500" height="419"  class=" alignleft" /></div>
<p>which provides access to some of the tweaks you can make that are published by the author but not available in the actual application preferences.</p>
<p>You can see feedback from others in the <a href="http://groups.google.com/group/blacktree-secrets">discussion group</a>, tinker with <a href="http://blacktree-secrets.googlecode.com/">the source code</a> on your own and even <a href="http://secrets.blacktree.com/edit">submit your own l33t secrets</a> to BlackTree.</p>
<p>If you know of any cool, hidden preferences or have feedback on Secrets that TAB readers should know, definitely drop a note in the comments.</p>
<p><strong>Related research and analysis from GigaOM Pro:</strong><br />Subscriber content. <a href="http://pro.gigaom.com/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171534+the-secrets-are-out-thanks-to-blacktree&utm_content=hrbrmstr">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2011/03/why-ipad-2-will-lead-consumers-into-the-post-pc-era/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171534+the-secrets-are-out-thanks-to-blacktree&utm_content=hrbrmstr">Why iPad 2 Will Lead Consumers Into the Post-PC&nbsp;Era</a></li><li><a href="http://pro.gigaom.com/2011/03/the-near-term-evolution-of-social-commerce/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171534+the-secrets-are-out-thanks-to-blacktree&utm_content=hrbrmstr">The Near-Term Evolution of Social&nbsp;Commerce</a></li><li><a href="http://pro.gigaom.com/2011/02/content-farms-the-players-the-benefits-the-risks/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171534+the-secrets-are-out-thanks-to-blacktree&utm_content=hrbrmstr">Content Farms: The Players, The Benefits, The&nbsp;Risks</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=171534&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/the-secrets-are-out-thanks-to-blacktree/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a08d08f6b541441fccf36bc6392a0784?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">hrbrmstr</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/secrets.png" medium="image">
			<media:title type="html">secrets</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/secrets-main-prefpane.png" medium="image">
			<media:title type="html">secrets-main-prefpane</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/secrets-twitterific.png" medium="image">
			<media:title type="html">secrets-twitterific</media:title>
		</media:content>
	</item>
	</channel>
</rss>
