[ale] teleport vs cd
David Tomaschik
david at systemoverlord.com
Mon Jun 27 21:19:07 EDT 2011
I can't believe I didn't know about "cd -", but knew about
pushd/popd... sometimes the simplest things escape me.
David
On Mon, Jun 27, 2011 at 9:10 PM, Michael Trausch <mike at trausch.us> wrote:
> Yes, I have been using pushd/popd for a long time and it works well for me.
> Being that I have a lot of similarly named directories, I don't think this
> teleport thing would work for me... besides, I have become rather accustomed
> to working in directories like a stack.
>
> But, interesting nonetheless.
>
> --
> Sent from my phone... a G2 running CM7 nightlies!
>
> On Jun 27, 2011 6:24 PM, "JD" <jdp at algoloma.com> wrote:
>> On 06/27/2011 06:04 PM, Shawn wrote:
>>> I think I am in love.
>>>
>>> http://www.devdaily.com/linux/linux-teleport-command-cd-improved
>>>
>>
>> Along the same line ...
>>
>> CDPATH is a nice environment setting for most shells that helps in a
>> similar way, though not as complete and without any history. The
>> directories listed are searched first, in order for matching
>> subdirectories to filling for the 'cd' command. Basically, it makes
>> your standard 'cd' smarter ... sometimes. Sometimes you get 'cd'ed to
>> places you didn't intent too. ;)
>>
>> Check the bash, tcsh, csh man pages for more. I know it works in those
>> shells (and maybe others).
>>
>> pushd and popd are pretty handy too. An alias with 'pd' that pushes or
>> pops directories when there is or isn't an argument is handy too. This
>> assumes you won't/can't just open another terminal.
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
--
David Tomaschik, RHCE, LPIC-1
System Administrator/Open Source Advocate
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com
More information about the Ale
mailing list