Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: CHASE_LINKS and PS1
- X-seq: zsh-users 24438
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: CHASE_LINKS and PS1
- Date: Thu, 14 Nov 2019 16:59:28 +0000
- 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==
- In-reply-to: <alpine.DEB.2.20.1911141747150.25661@af3358511.vc-37-187-30.rh>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20191113105638eucas1p2ce334c013381831d982c583aa35cf253@eucas1p2.samsung.com> <alpine.DEB.2.20.1911131143570.8013@af3358511.vc-37-187-30.rh> <1573644912.3658.9.camel@samsung.com> <alpine.DEB.2.20.1911131242340.8013@af3358511.vc-37-187-30.rh> <1573738954.12005.11.camel@samsung.com> <alpine.DEB.2.20.1911141747150.25661@af3358511.vc-37-187-30.rh>
Seb wrote on Thu, 14 Nov 2019 16:48 +00:00:
>
> > While I haven't got anything particularly clever, I presume you've
> > thought of simply adding that to ~/.zshrc?
>
> 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 «if [[ -e ./.is_my_homedir ]]; then cd; fi».
(Create that file manually, once.)
If your zsh is new enough to support «print -v», you can also do:
if print -v tmp -Pr %~; [[ $tmp == '/home/seb' ]]; then cd; fi
unset tmp
Messages sorted by:
Reverse Date,
Date,
Thread,
Author