Re: cd multiple levels up?

From:

Clark J. Wang

Subject:

Re: cd multiple levels up?

Date:

Wed, 16 Jun 2010 23:23:47 +0800

>
> My way:
>>>
>>>
>> I wrote a compgen function for cd and it behaves like this: when you type
>> `cd .....' on the command line and then press TAB, the command line
>> becomes
>> `cd ../../../../', then you can continue editing it to be `cd
>> ../../../../other-dir/' and press ENTER.
>>
>>
> I'm against changing the behaviour of cd. It means, when you have directory
> name with dots, you will not be able to cd into it. Right, not directly like
> `cd ....', but using `cd ./....' will probably work. I just want to let you
> know about it :)
>
> I'm not changing the behavior of cd. If I really need to cd into a
directory named `.....', I just type `cd .....' and press ENTER instead of
TAB. And, the probability of a dir naming `.....' is very low. :)
> RR
>
>