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 22669
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: allow zsh to source a script and then become interactive
- Date: Sat, 15 Apr 2017 01:00:45 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=ox9SnxusoGUZsSKcJE wok/GF/JZnj4E3gwKAiqzwL/c=; b=rr6IRakQyfhK0b6V3h3dlZd8R/gMGgUhSH ZOpxE6NHD+n2caN1XxJPAcbJONzpJbTPGQYeL+/mB0llHKYuVEPKsfSvYkgP15iH iVtqkou3n4bgn8nNU+TmO1wFlWBQYzsxaSD37ixhLG/hH08C+QC11F6C9urkOsXh /JBJqlgzhbMaos+NWhJos4HGU6slPqh86063I1YfjslI3/MPeGdHc6tH7OmYgO0G yEyHqA1A1xLB8J5mw0X06j7Qt8UojEt31GEgbDuIjZf/KDImzgOqvHXJkoyf8aM9 MobQ1R0+ANIT4Qr0UCnWkUO3j/xm6rt0HqUvYnIC9FcT4koD+g+g==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=ox9SnxusoGUZsSKcJE wok/GF/JZnj4E3gwKAiqzwL/c=; b=jo4DsLv1cCQ1dA4IARshiAMOahotGJ9Yjt B++sGK3GM9imcKVESHdmIjTtLkCl2sTZzq8desZYoLSmy/x1CpMiXLCXmx4S/s5Z X8c0sECiekvUrldrybDfUe4F6tuqsSgWdpEG0CoJKX+/izGlTfnXX4QVww/YMPPX opAIXbGbbKITQtt0PIi7jwQfV0oYpO3STcZR3E/MJB/bEwKEKatec+bw+cYsvsYe ScXrpk0TQlBdRkiUHamDtXQrbrs97lhqfCumkz/sxpqp62lID1wncmIFAcEjeFKI vqFZASvwMe0x0y5jvJPuFTrdDK8WRmnj+nFfRkUP84ciguIXEM4w==
- In-reply-to: <20170414220341.GA24751@teapot.bifb.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- 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>
Anthony Fletcher wrote on Fri, Apr 14, 2017 at 18:03:42 -0400:
> See the extra "teapot% " prompt that sneaks in. Instead run
>
> PS1='' zsh -fis <<<"source /tmp/setup </dev/tty && exec </dev/tty"
>
> and it does the desired thing. Brilliant.
You must be using an older version. In current versions, PS1 is no
longer read from the environment, so you should set it to empty inside
the here string.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author