zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: zsh-users@zsh.org
Subject: Re: cd x x.something
Date: Mon, 25 Sep 2017 08:25:32 +0100	[thread overview]
Message-ID: <20170925072532.GA4408@gmx.de> (raw)
In-Reply-To: <20170925021928.kmibsqzal2biy6w2@solfire>

On Mon, Sep 25, 2017 at 04:19:28AM +0200, tuxic@posteo.de 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


  parent reply	other threads:[~2017-09-25  7:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25  2:19 tuxic
2017-09-25  3:55 ` Amir Ish-Hurwitz
2017-09-25  7:25 ` Dominik Vogt [this message]
2017-09-26 18:50 ` Roman Neuhauser
2017-09-26 19:47   ` Grant Taylor
2017-09-26 23:56     ` Roman Neuhauser
2017-09-27  1:23       ` Grant Taylor
2017-09-27  3:47         ` Bart Schaefer
2017-09-27  4:05           ` Grant Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170925072532.GA4408@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).