Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: allow zsh to source a script and then become interactive
- X-seq: zsh-users 22672
- From: Anthony Fletcher <anthony@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: allow zsh to source a script and then become interactive
- Date: Sat, 15 Apr 2017 15:06:52 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bifb-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EWdJ8UzuFQYcPqm0PgQByIeSQCH7XSmD/NpuTCaqkW0=; b=CZsweEAzu3AnsEIT9qiqe9RGZD58nek2X0ASzv/HhxlGV6e5ya9hRp+8x11sH8xZzF Z5aR0XipX4a+B48C5yXat19kdy7KlT7unxORcUCdx66X31hAGOAZ9NyAiivkwDY6sJDt FPv691CeaQG6tdAUfQNXBra+QgrgZqsATLbdc5YRWuFP7XLTuAVMIrF2YqBl1jZrqgHq 8FTDtMUgKugLILUfrP9XrHUDQ2cOABx3CRbUNaQOmZTYPJ7Yauu+jUmpdAp2oc4NpIpj FJAfzNg7IG38EaWa1PvIQUh9zbHTbaIKHXuXrYTzz/KdXxTyl5v5icM9ZhNyoUIXKR3G GrgA==
- In-reply-to: <20170415154008.GA15579@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170414165548.GA13756@teapot.bifb.org> <170414132858.ZM15204@torch.brasslantern.com> <20170414220341.GA24751@teapot.bifb.org> <20170415010045.GA12706@fujitsu.shahaf.local2> <170414194530.ZM16516@torch.brasslantern.com> <20170415154008.GA15579@fujitsu.shahaf.local2>
Thanks all - I'm happy to have three solutions I can use now.
Would it be worth actually adding a new, invocation flag? say
zsh -fi --rcfile $sourcefile
It would be simpler, bash and ksh already have this flag and it would be
useful.
Anthony.
On 15 Apr 2017 at 15:40:08, Daniel Shahaf wrote:
> Bart Schaefer wrote on Fri, Apr 14, 2017 at 19:45:30 -0700:
> > However, I tried it, and PS1 is imported by zsh built from current git.
>
> Ah, my bad. (I normally run Src/zsh with a custom zshrc that sets fpath,
> but it also sets $PS1, which I forgot about.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author