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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 ae47f38a for ; Thu, 14 Nov 2019 17:00:47 +0000 (UTC) Received: (qmail 26982 invoked by alias); 14 Nov 2019 17:00:40 -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: 24438 Received: (qmail 2873 invoked by uid 1010); 14 Nov 2019 17:00:40 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com 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(66.111.4.26):SA:0(-2.6/5.0):. Processed in 4.638845 secs); 14 Nov 2019 17:00:40 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm1; bh=S69Kqa4LrrAKOqHR9w8TywHrEI N4k5SQTDawt/0jWLU=; b=T0hVwzlTEVwAfUdtcW9AInF24XL1JebIIAklHmfcT4 o+OkPe9W9xQ+OIc7cSkqnMfiOxT2kvmulKMetEni0LY8zbbjw08gXMJYCtxG78vr 5UOGm/x8t9xdTBMlxEztg3EB/6VTNcukZe7mBPVZWp1kn4J6epg/Q2kaSaWQPu+w kb6dKm9ln0xT4yuxCtBG3hlvKRB4Fryxp2BQT6pjA6o73fja4C6Dev0jPxZIptbh znLcJkKr5TtXdVQnIx5AGveBOGzDuvgatScDgbVlko/8c4xpTf6L0dPjGBSb7WPC JrW5T8bg7yilSMg/GVKTl/jr9aKuo7bBlJf2ZQ+bIgEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=S69Kqa4LrrAKOqHR9w8TywHrEIN4k5SQTDawt/0jW LU=; b=g+xYeQ6Tkr9jUdIPUL2ThgZpihdyNrloz852Bp/8ujDCw+0pgiZzGn8xA 9FOyXZUKloO6m2LJmkz8T/Q9ttpNQGOwIYFzBrPnOGcVBt8dGAnlMuyi/DM0vi5A V7bybwfOmpPVaIXdBgpFyPsXISP7hFuFbI+zNo2HyNIxSzGq49G2GYQoUyXnV0e9 1AHD3nDwKPhvJsytq0chD2BwhIQNEpsqyozbHWb91U7vsPjJMPDEFH7P5+BMclbD 1Kxld19jcrLCFW89tcrPNx7u69F05k7o+MZF+qPrDIoJvuoOhykohdn4nXpOQYyM U36bG4tE6883+gCFBHY/J5UbLXGXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeffedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnihgvlhcuufhhrghhrghffdcuoegurdhssegu rghnihgvlhdrshhhrghhrghfrdhnrghmvgeqnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgenucevlhhushhtvghrufhiiigv pedt X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-562-gfd0633a-fmstable-20191114v1 Mime-Version: 1.0 Message-Id: <28d52b6d-dbb5-41f9-8ee1-7d615374cc4f@www.fastmail.com> In-Reply-To: References: <1573644912.3658.9.camel@samsung.com> <1573738954.12005.11.camel@samsung.com> Date: Thu, 14 Nov 2019 16:59:28 +0000 From: "Daniel Shahaf" To: zsh-users@zsh.org Subject: Re: CHASE_LINKS and PS1 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Seb wrote on Thu, 14 Nov 2019 16:48 +00:00: >=20 > > While I haven't got anything particularly clever, I presume you've=20= > > thought of simply adding that to ~/.zshrc? >=20 > Aww... I hadn't realized that ~/.zshrc is indeed a list of commands. > 'cd' is now added at the end of the file and all is well. This will cd to the homedir even if you start zsh from elsewhere. You might want something like =C2=ABif [[ -e ./.is_my_homedir ]]; then cd; f= i=C2=BB. (Create that file manually, once.) If your zsh is new enough to support =C2=ABprint -v=C2=BB, you can also = do: if print -v tmp -Pr %~; [[ $tmp =3D=3D '/home/seb' ]]; then cd; fi unset tmp