help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Rudi C <rudiwillalwaysloveyou@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Is it possible to disable abbreviation of named directories?
Date: Thu, 15 Apr 2021 20:37:05 +0000	[thread overview]
Message-ID: <20210415203705.GC6669@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAE9z9A28MSW-THrOvi+rnYBw7h84UObBXC7-dfXygvpjumzUdg@mail.gmail.com>

Rudi C wrote on Thu, Apr 15, 2021 at 22:53:13 +0430:
> Per  14.7.2 Static named directories at
> http://zsh.sourceforge.net/Doc/Release/Expansion.html:
> When the shell prints a path (e.g. when expanding %~ in prompts or when
> printing the directory stack), the path is checked to see if it has a named
> directory as its prefix. If so, then the prefix portion is replaced with a ‘
> ~’ followed by the name of the directory. The shorter of the two ways of
> referring to the directory is used, i.e. either the directory name or the
> full path.
> Is there a way to disable this? I like to see full paths when the shell
> prints things. I want the named dirs because they are easier to type, not
> because they are easier to read.

How are you hashing the directories (with «hash -d» or with
zsh_directory_name)?  How are you printing them?  E.g., for %~ in
prompts there's %/ to use instead.

      reply	other threads:[~2021-04-15 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-15 18:23 Rudi C
2021-04-15 20:37 ` Daniel Shahaf [this message]

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:

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

  git send-email \
    --in-reply-to=20210415203705.GC6669@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=rudiwillalwaysloveyou@gmail.com \
    --cc=zsh-users@zsh.org \


* 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


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