<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Unix Tip - Aliases</title>
	<atom:link href="http://theappleblog.com/2007/01/23/unix-tip-aliases/feed/" rel="self" type="application/rss+xml" />
	<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/</link>
	<description>TheAppleBlog, published by and for the day-to-day Apple user, is a prominent source for news, reviews, walkthroughs, and real life application of all Apple products.</description>
	<pubDate>Fri, 21 Nov 2008 20:11:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Lance Willett</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-101114</link>
		<dc:creator>Lance Willett</dc:creator>
		<pubDate>Fri, 02 Feb 2007 06:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-101114</guid>
		<description>My favorite alias is the good ol' long list but with color and better file size info. Of course to get the color benefit you have to add that setting (in Terminal prefs on Mac OS X or in your profile: &lt;code&gt;export TERM=xterm-color&lt;/code&gt;).

&lt;code&gt;alias lsh="ls -alhG"&lt;/code&gt;

I also have aliases for all the common SVN commands that I use all day long, like:

&lt;code&gt;alias sva="svn add"
alias svc="svn commit"
alias svd="svn delete"
alias svi="svn info"
alias svm="svn move"
alias svs="svn status"
alias svu="svn update"&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>My favorite alias is the good ol&#8217; long list but with color and better file size info. Of course to get the color benefit you have to add that setting (in Terminal prefs on Mac OS X or in your profile: <code>export TERM=xterm-color</code>).</p>
<p><code>alias lsh="ls -alhG"</code></p>
<p>I also have aliases for all the common SVN commands that I use all day long, like:</p>
<p><code>alias sva="svn add"<br />
alias svc="svn commit"<br />
alias svd="svn delete"<br />
alias svi="svn info"<br />
alias svm="svn move"<br />
alias svs="svn status"<br />
alias svu="svn update"</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Brewer</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-100031</link>
		<dc:creator>John Brewer</dc:creator>
		<pubDate>Wed, 24 Jan 2007 15:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-100031</guid>
		<description>Re: here and there,

there are already built-in commands which do a similar thing for you: pushd and popd, but they don't stick around like your 'here' does.

pushd /some/long/new/path (to go to the new place and remember the current one)
popd (to return to the remembered one)</description>
		<content:encoded><![CDATA[<p>Re: here and there,</p>
<p>there are already built-in commands which do a similar thing for you: pushd and popd, but they don&#8217;t stick around like your &#8216;here&#8217; does.</p>
<p>pushd /some/long/new/path (to go to the new place and remember the current one)<br />
popd (to return to the remembered one)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mutahir</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99984</link>
		<dc:creator>Mutahir</dc:creator>
		<pubDate>Wed, 24 Jan 2007 02:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99984</guid>
		<description>I am a newbie to unix environment and mac osx as well, very nice tip and i hope you people contribute more here so that people like me can learn:)

Regards
Mutahir</description>
		<content:encoded><![CDATA[<p>I am a newbie to unix environment and mac osx as well, very nice tip and i hope you people contribute more here so that people like me can learn:)</p>
<p>Regards<br />
Mutahir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustaf</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99947</link>
		<dc:creator>Gustaf</dc:creator>
		<pubDate>Tue, 23 Jan 2007 18:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99947</guid>
		<description>I've created an alias which will quickly move to a "sibling" directory.  Say we have two folders: ~/Desktop/Ned   and    ~/Desktop/Fred
If your currenty working directory is ~/Desktop/Ned and u want to switch your current working directory to Fred, normally you'd type:

cd ../Fred

Too much typing for me!  Create an alias like this:

alias c,="cd ..;cd "

Now you can go from Ned to Fred (or visa versa) like this:

c, Fred

This saves a few keystrokes!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve created an alias which will quickly move to a &#8220;sibling&#8221; directory.  Say we have two folders: ~/Desktop/Ned   and    ~/Desktop/Fred<br />
If your currenty working directory is ~/Desktop/Ned and u want to switch your current working directory to Fred, normally you&#8217;d type:</p>
<p>cd ../Fred</p>
<p>Too much typing for me!  Create an alias like this:</p>
<p>alias c,=&#8221;cd ..;cd &#8221;</p>
<p>Now you can go from Ned to Fred (or visa versa) like this:</p>
<p>c, Fred</p>
<p>This saves a few keystrokes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bret Webb</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99932</link>
		<dc:creator>Bret Webb</dc:creator>
		<pubDate>Tue, 23 Jan 2007 15:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99932</guid>
		<description>Good call Martin.  Forgot to mention that the syntax was for csh.</description>
		<content:encoded><![CDATA[<p>Good call Martin.  Forgot to mention that the syntax was for csh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Stanhope</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99923</link>
		<dc:creator>Martin Stanhope</dc:creator>
		<pubDate>Tue, 23 Jan 2007 15:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99923</guid>
		<description>Nice tip. These days one is likely to be using a bash shell on OS X which would make it:
  
alias here=’export THERE_PWD=`echo $PWD`’
alias there=‘cd $THERE_PWD’

Martin</description>
		<content:encoded><![CDATA[<p>Nice tip. These days one is likely to be using a bash shell on OS X which would make it:</p>
<p>alias here=’export THERE_PWD=`echo $PWD`’<br />
alias there=‘cd $THERE_PWD’</p>
<p>Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Runar</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99920</link>
		<dc:creator>Runar</dc:creator>
		<pubDate>Tue, 23 Jan 2007 14:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99920</guid>
		<description>Thanks Bret!!!
That was a really good one</description>
		<content:encoded><![CDATA[<p>Thanks Bret!!!<br />
That was a really good one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bret Webb</title>
		<link>http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99915</link>
		<dc:creator>Bret Webb</dc:creator>
		<pubDate>Tue, 23 Jan 2007 13:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://theappleblog.com/2007/01/23/unix-tip-aliases/#comment-99915</guid>
		<description>I spend about 12 hours a day in the Linux CLI environment, but at the end of a hard day I like to curl up with my PowerBook... without the terminal open!

However, for those pesky little tasks I still like to use the CLI for my PowerBook.  Navigation at the console level, however, is not friendly and you can end up cd'ing your way into oblivion.  So, I use two aliases called "here" and "there" which facilitate getting around the directory tree.  

Say you are in /Users/user/Desktop/folder/subfolder/ (which I will refer to as Dir1) and you want to edit a file in /Volumes/thumbdrive/folder/subfolder/ (which I will refer to as Dir2).  That's a lot of typing to get back and forth, no?  So, while in Dir1 you simply type "here" at the CLI.  When you are done messing around in Dir2 and you want to go back to Dir1, all you have to do is type "there" to go back.  Out of the 30 aliases that I have, these are my favorite.

alias here 'setenv THERE_PWD `echo $PWD`'
alias there 'cd $THERE_PWD'

-Bret</description>
		<content:encoded><![CDATA[<p>I spend about 12 hours a day in the Linux CLI environment, but at the end of a hard day I like to curl up with my PowerBook&#8230; without the terminal open!</p>
<p>However, for those pesky little tasks I still like to use the CLI for my PowerBook.  Navigation at the console level, however, is not friendly and you can end up cd&#8217;ing your way into oblivion.  So, I use two aliases called &#8220;here&#8221; and &#8220;there&#8221; which facilitate getting around the directory tree.  </p>
<p>Say you are in /Users/user/Desktop/folder/subfolder/ (which I will refer to as Dir1) and you want to edit a file in /Volumes/thumbdrive/folder/subfolder/ (which I will refer to as Dir2).  That&#8217;s a lot of typing to get back and forth, no?  So, while in Dir1 you simply type &#8220;here&#8221; at the CLI.  When you are done messing around in Dir2 and you want to go back to Dir1, all you have to do is type &#8220;there&#8221; to go back.  Out of the 30 aliases that I have, these are my favorite.</p>
<p>alias here &#8217;setenv THERE_PWD `echo $PWD`&#8217;<br />
alias there &#8216;cd $THERE_PWD&#8217;</p>
<p>-Bret</p>
]]></content:encoded>
	</item>
</channel>
</rss>
