From: Seb <seb@h-k.fr>
To: zsh-users@zsh.org
Subject: Re: CHASE_LINKS and PS1
Date: Wed, 13 Nov 2019 13:00:37 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.20.1911131242340.8013@af3358511.vc-37-187-30.rh> (raw)
In-Reply-To: <1573644912.3658.9.camel@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 794 bytes --]
Hi,
>> Setting the option CHASE_LINKS disables the %~ shortcut in PS1:
> That's not a general effect. Is there e.g. an automounter on your
> system that means home directories are in fact links? The /raid in the
> path certainly looks a bit suspicious...
Ah yes, /home is indeed a symlink to /raid/home.
I understand now: $HOME is /home/seb and because of CHASE_LINKS, pwd says
that I am in /raid/home/seb. I added HOME=/raid/home/seb in ~/.zshenv
and the problem is almost solved: the prompt is correct except when a
terminal is first opened, as show below:
/home/seb>cd
~>
I tried a workaround with:
urxvt -e sh -c '/usr/bin/zsh'
but I do not manage to tell zsh to execute "cd && clear".
Is there a way to do this?
Or perhaps a better way all around?
Thanks alot!
Sébastien.
next prev parent reply other threads:[~2019-11-13 12:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20191113105638eucas1p2ce334c013381831d982c583aa35cf253@eucas1p2.samsung.com>
2019-11-13 10:55 ` Seb
2019-11-13 11:35 ` Peter Stephenson
2019-11-13 12:00 ` Seb [this message]
2019-11-14 13:42 ` Peter Stephenson
2019-11-14 16:48 ` Seb
2019-11-14 16:59 ` Daniel Shahaf
2019-11-15 16:29 ` Seb
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=alpine.DEB.2.20.1911131242340.8013@af3358511.vc-37-187-30.rh \
--to=seb@h-k.fr \
--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).