zsh-users
 help / color / mirror / code / Atom feed
From: Anthony Fletcher <anthony@bifb.org>
To: zsh-users@zsh.org
Subject: Re: allow zsh to source a script and then become interactive
Date: Sat, 15 Apr 2017 15:06:52 -0400	[thread overview]
Message-ID: <20170415190652.GA14501@teapot.bifb.org> (raw)
In-Reply-To: <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.)


  reply	other threads:[~2017-04-15 19:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-14 16:55 Anthony Fletcher
2017-04-14 20:28 ` Bart Schaefer
2017-04-14 22:03   ` Anthony Fletcher
2017-04-15  1:00     ` Daniel Shahaf
2017-04-15  2:45       ` Bart Schaefer
2017-04-15 15:40         ` Daniel Shahaf
2017-04-15 19:06           ` Anthony Fletcher [this message]
2017-04-14 22:41 ` Nikolay Aleksandrovich Pavlov (ZyX)
2017-04-14 23:14   ` Bart Schaefer
2017-04-14 23:39     ` Anthony Fletcher

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=20170415190652.GA14501@teapot.bifb.org \
    --to=anthony@bifb.org \
    --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).