zsh-workers
 help / color / mirror / code / Atom feed
* How to complete named directories?
@ 2022-09-29  8:20 Sebastian Gniazdowski
  2022-09-29 19:37 ` Eric Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sebastian Gniazdowski @ 2022-09-29  8:20 UTC (permalink / raw)
  To: Zsh hackers list

[-- Attachment #1: Type: text/plain, Size: 78 bytes --]

I'm using the $VAR -> ~VAR feature but ~VAR isn't completed. How to fix
this?

[-- Attachment #2: Type: text/html, Size: 137 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to complete named directories?
  2022-09-29  8:20 How to complete named directories? Sebastian Gniazdowski
@ 2022-09-29 19:37 ` Eric Cook
  2022-09-29 22:27 ` Wesley
  2022-09-29 22:59 ` Bart Schaefer
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Cook @ 2022-09-29 19:37 UTC (permalink / raw)
  To: zsh-workers

On 9/29/22 04:20, Sebastian Gniazdowski wrote:
> I'm using the $VAR -> ~VAR feature but ~VAR isn't completed. How to fix this?
>

Would need more information on what you are doing.
$VAR contains a literal string ~VAR which happens to be a named directory?
if so, that wouldn't work since variables expansions aren't subjected to
further expansions.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to complete named directories?
  2022-09-29  8:20 How to complete named directories? Sebastian Gniazdowski
  2022-09-29 19:37 ` Eric Cook
@ 2022-09-29 22:27 ` Wesley
  2022-09-29 22:59 ` Bart Schaefer
  2 siblings, 0 replies; 4+ messages in thread
From: Wesley @ 2022-09-29 22:27 UTC (permalink / raw)
  To: Sebastian Gniazdowski; +Cc: zsh-workers

On 9/29/22 04:20, Sebastian Gniazdowski wrote:
> I'm using the $VAR -> ~VAR feature but ~VAR isn't completed. How to fix this?

This works for me:

VAR=/tmp
cd ~VAR

Have you enabled auto_name_dirs with setopt?

Cheers,
Wesley


--
Wesley Schwengle




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to complete named directories?
  2022-09-29  8:20 How to complete named directories? Sebastian Gniazdowski
  2022-09-29 19:37 ` Eric Cook
  2022-09-29 22:27 ` Wesley
@ 2022-09-29 22:59 ` Bart Schaefer
  2 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2022-09-29 22:59 UTC (permalink / raw)
  To: Sebastian Gniazdowski; +Cc: Zsh hackers list

On Thu, Sep 29, 2022 at 1:27 AM Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
>
> I'm using the $VAR -> ~VAR feature but ~VAR isn't completed. How to fix this?

If you mean that

% cd ~V<TAB>

does not complete to

% cd ~VAR

then that's confusing, because it certainly works for me, even if the
value of $VAR doesn't point to an existing location.

If you mean something else, e.g. as Eric speculated, you're going to
have to tell us.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-29 22:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29  8:20 How to complete named directories? Sebastian Gniazdowski
2022-09-29 19:37 ` Eric Cook
2022-09-29 22:27 ` Wesley
2022-09-29 22:59 ` Bart Schaefer

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).