From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: CHASE_LINKS and PS1
Date: Thu, 14 Nov 2019 16:59:28 +0000 [thread overview]
Message-ID: <28d52b6d-dbb5-41f9-8ee1-7d615374cc4f@www.fastmail.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2019-11-14 17:00 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
2019-11-14 13:42 ` Peter Stephenson
2019-11-14 16:48 ` Seb
2019-11-14 16:59 ` Daniel Shahaf [this message]
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=28d52b6d-dbb5-41f9-8ee1-7d615374cc4f@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--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).