Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
allow zsh to source a script and then become interactive
- X-seq: zsh-users 22663
- From: Anthony Fletcher <anthony@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: allow zsh to source a script and then become interactive
- Date: Fri, 14 Apr 2017 12:55:48 -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:mime-version :content-disposition:user-agent; bh=XJ6kBEr3ihVVzdJpTDop942cFavBKcuoZ16sEEwN9qQ=; b=TiIlmZdUU+11IxwbZ6xvCIAL3H3NcrflmUbsWVqZtnWqCc8BVbNW1VMs0sx+W2DnkE AHR9R6qMf4Bv01B4kmae/h6NqnHn1Ewc7w1cFppUSCznkB08SUw/iY01bjSlcu65eUNq MbcKPMS03xnxaJ4hSVFf280ds0xb4hfnSLfCgda6LR6MzsEzVaXkliAbZK6ENrtq1M9C aKijdPwgB0bMXtuV/NZL9Dv/NLAVD3bwcscFgwf51R7WWCOLcM4WQn6VjwlDy5Wz6hiY hbZikAXFRZ8elo5Y2tDIdhhkw2iQSuH694BtcThDt8MNIgefe4BC/GtpRKvNMZL0nr6R fTIA==
- 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
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 is akin to the ksh invocation:
ENV=startup ksh
or bash's
bash --rcfile startup
One solution was covered in 2005 by Bart: see
http://www.zsh.org/mla/users/2005/msg00600.html However this only works
if you can change the .zshrc file.
Another alternative is to create a custom .zshrc in a temporary
directory and set the environment variable ZDOTDIR. But this is a little
clunky.
I look after an increasing disparate collection of systems and I'd
like to launch a customised zsh on a remote system without changing
anything ahead of time.
Any ideas or should we propose a --rcfile option to zsh?
Anthony.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author