From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 21bb0ea2 for ; Wed, 13 Nov 2019 12:01:29 +0000 (UTC) Received: (qmail 3749 invoked by alias); 13 Nov 2019 12:01:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24423 Received: (qmail 26188 invoked by uid 1010); 13 Nov 2019 12:01:21 -0000 X-Qmail-Scanner-Diagnostics: from h-k.fr by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25628. spamassassin: 3.4.2. Clear:RC:0(37.187.30.95):SA:0(-1.9/5.0):. Processed in 2.754684 secs); 13 Nov 2019 12:01:21 -0000 X-Envelope-From: seb@h-k.fr X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at h-k.fr designates 37.187.30.95 as permitted sender) X-Virus-Scanned: Debian amavisd-new at h-k.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=h-k.fr; s=mail; t=1573646437; bh=tJBuykxkm8pCeQT1dIOwpEOI7cy0S45kMEFbvk3RzY0=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Tc+/61DjBPeBAeOLEDEQoDXzU+GNrQqMYs/92zKr2ylbibveDqCMi4J5ixgrQ9vOy L0Vb1MfnqCk0yZ1YzVrXYbK76wLzBYGY6uYAHy+EXo+dwP1DPRb5xUZNssMa5ANvn9 hhCx2Kpym9PYK+YqP5U6L04IKa0lwj9Lfxnw2xuQ= Date: Wed, 13 Nov 2019 13:00:37 +0100 (CET) From: Seb To: zsh-users@zsh.org Subject: Re: CHASE_LINKS and PS1 In-Reply-To: <1573644912.3658.9.camel@samsung.com> Message-ID: References: <1573644912.3658.9.camel@samsung.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1155178722-1086965276-1573645959=:8013" Content-ID: ---1155178722-1086965276-1573645959=:8013 Content-Type: text/plain; CHARSET=ISO-8859-1; FORMAT=flowed Content-Transfer-Encoding: 8BIT Content-ID: 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. ---1155178722-1086965276-1573645959=:8013--