From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7630 invoked by alias); 14 Apr 2017 16:55:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22663 Received: (qmail 15595 invoked from network); 14 Apr 2017 16:55:56 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.178):SA:0(-0.2/5.0):. Processed in 0.914108 secs); 14 Apr 2017 16:55:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: anthony@bifb.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bifb.org does not designate permitted sender hosts) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=XJ6kBEr3ihVVzdJpTDop942cFavBKcuoZ16sEEwN9qQ=; b=kOa+/eNSAGsyuFMVHR+VK0AToWSljFbQBdvjK0/zUCKUvtKC4A60nJyYKhDql+DwqQ uBNaobpHG8ELUHWl/Jbd6yVdponzW7MqOBS7EKir9tzWoiW6irIa+d3wXvcr3uCDD4rU 8AINTWRBTmoc5PrW9ajILfPVexWkHWO+Rmgz84Jlqz2NH+D+x1BsHnF4XVoFIUJOUOA3 Nz6x4cmEC6Qb/aouKCO/6+7T22N2NpJ+YEeMAXoP06FR7g1PvFyhAZmxS+yJIYik1RT3 kE5ATaj97RlOA5XS7NXmPric5LU0rsSY34i/ngup6QOXLS9iY12lnOKAnIN9/fmTwib2 oF7Q== X-Gm-Message-State: AN3rC/41GnMYR2vsjqcJzKhoiGwIORtkuzCXf6vA/9UzGcM4oAoTjBT3 PlLse79rZf85BNKd X-Received: by 10.200.51.70 with SMTP id u6mr2289702qta.122.1492188949437; Fri, 14 Apr 2017 09:55:49 -0700 (PDT) Date: Fri, 14 Apr 2017 12:55:48 -0400 From: Anthony Fletcher To: zsh-users@zsh.org Subject: allow zsh to source a script and then become interactive Message-ID: <20170414165548.GA13756@teapot.bifb.org> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) 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.