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 22664
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: allow zsh to source a script and then become interactive
- Date: Fri, 14 Apr 2017 13:28:58 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=Grj8zwfginifJyMgu3Rl03oG7P7nxdaLIv7syqg1rFQ=; b=Er9Yvfo390c2JobUJac2pTZvcKSfJ82H9axKZ/EKkzeQvuyEZEYXlhYOExc/HlBIbg CHraFA4dwkg+FePdhF6TYWmfNlnmcO+9D6yunjkm9MPfyt0YeNbbi0hGrcie+TlqBWjB tgptqfMfIkjAFUWw6fZY22dvblx7PSUN1yYIXD1hnrmBhziwcJVeNvHbEEh4e6IcgOVd iRXJ3vQ3imfSCb2O3QWjUG1kvj892ykqf+wBYylAif/8hOsXcG0KvTJoU4hLJdOvTIOI a12KQX4jAZQKZwTO2TGpnosRVfgHkzuoNJzOhm4n+JcDjlSPZcndvr8e92W/1Nlzjnd2 JVhA==
- In-reply-to: <20170414165548.GA13756@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>
On Apr 14, 12:55pm, Anthony Fletcher wrote:
}
} This is an oldie but goodie that I don't have a solution to. How can I
} invoke a zsh that sources a particular file (not the standard start up
} files) and then become interactive, preserving functions, etc?
This should do it:
zsh -is <<<"source $aparticularfile </dev/tty && exec </dev/tty"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author