Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cd x x.something



On Mon, Sep 25, 2017 at 04:19:28AM +0200, tuxic@xxxxxxxxx wrote:
> . But suppose there are these two directories
> 
> /a/b/ThisIsARedicoluousLongDirectoryNameWhichNoPersonWillReallyTypeInTwice
> /a/b/ThisIsARedicoluousLongDirectoryNameWhichNoPersonWillReallyTypeInTwice.bak
> 
> and you are in the first one and you want to go to the seond one....
> do you really need to type in "ThisIsARedicoluousLongDirectoryNameWhichNoPersonWillReallyTypeInTwice"
> twice when you want to use this
> 
> cd A B

You don't have to type the whole pth component, just the part you
want to replace:

 $ cd e e.bak

(unfortunately the first argument cannot be empty; "cd '' .bak"
does not work (why?)).

Or to get back, even

 $ cd .bak ""

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt



Messages sorted by: Reverse Date, Date, Thread, Author