On 12 November 2010 10:36, Hilco Wijbenga <hilco.wijbe...@gmail.com> wrote:
> On 12 November 2010 09:57, Philip Webb <purs...@ca.inter.net> wrote:
>> It needs to be a Bash function, so in  ~/.bashrc
>> I tried 'function cd2() { cd .. ; cd $1 ; }',
>
> Doesn't
>
> function cd2() { cd ../$1 }
>
> work? (I haven't tried it.)

So yes, this:

function cd2() { cd ../$1; }

works.

Reply via email to