<?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>Penguinspeak &#187; Terminal</title>
	<atom:link href="http://macmartine.com/blog/category/terminal/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Tue, 19 Oct 2010 00:39:03 +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>Making permanent aliases for Terminal</title>
		<link>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html</link>
		<comments>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 16:14:15 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=165</guid>
		<description><![CDATA[OK, so yesterdays post was alright. It got you making an alias for Terminal. But if you tried it you probably noticed that you lost the alias after you quit Terminal. That&#8217;s usually not what you want. Let&#8217;s make it stick around. Assuming you&#8217;re using bash: Launch Terminal % pico ~/.bash_profile Add a line with [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so yesterdays post was alright. It got you making an alias for Terminal. But if you tried it you probably noticed that you lost the alias after you quit Terminal. That&#8217;s usually not what you want. Let&#8217;s make it stick around. </p>
<p>Assuming you&#8217;re using bash:</p>
<p>Launch Terminal<br />
<code><br />
% pico ~/.bash_profile<br />
</code><br />
Add a line with a variable followed by whatever command you what it to perform, such as:<br />
<code><br />
webroot='cd /Volumes/apache/webroot'<br />
</code><br />
CNTRL-X, then press &#8216;y&#8217; to save the file and exit edit mode<br />
now restart bash_profile;<br />
<code><br />
% source ~/.bash_profile<br />
</code><br />
That&#8217;s it!<br />
Now anytime you want you can launch Terminal, simple type % webroot, and you&#8217;ll be taken to &#8216;/Volumes/apache/webroot&#8217;</p>
<p>Now will all the typing this will save you, there&#8217;ll be more time for beer at the end of the day.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Making+permanent+aliases+for+Terminal+http%3A%2F%2Fbit.ly%2F2T4waP" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating aliases in Terminal</title>
		<link>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html</link>
		<comments>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 16:58:47 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=160</guid>
		<description><![CDATA[I launch Terminal many times per day, and usually go to one of a handful of directories right off the bat. I just discovered the handiness of creating aliases in Terminal. Let&#8217;s say you often go to /Volumes/development/depot/mainbranch. Let&#8217;s create an alias to that called &#8216;mb&#8217; for &#8216;mainbranch&#8217; (this can be whatever you want, of [...]]]></description>
			<content:encoded><![CDATA[<p>I launch Terminal many times per day, and usually go to one of a handful of directories right off the bat. I just discovered the handiness of creating aliases in Terminal. </p>
<p>Let&#8217;s say you often go to /Volumes/development/depot/mainbranch. Let&#8217;s create an alias to that called &#8216;mb&#8217; for &#8216;mainbranch&#8217; (this can be whatever you want, of course.<br />
Simply launch terminal.<br />
Type: alias mb=&#8217;cd /Volumes/development/depot/mainbranch&#8217;<br />
Done!<br />
Now just type &#8216;mb&#8217; at the command prompt and you&#8217;ll be taken directly to that directory!<br />
Sweet!</p>
<p>Note, you can also do the same to launch applications:<br />
alias tx=‘open /Applications/TextEdit.app/’</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Creating+aliases+in+Terminal+http%3A%2F%2Fbit.ly%2FUXyWF" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

