From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31101 invoked from network); 13 Feb 2023 10:58:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2023 10:58:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676285895; b=NBzi28eCEsOu4zo9nLPUTZxYlKh7zJnUttiYCRhF0jaf77erRl6UYTw96kAfemEKxyhMIpKLum KX0hA58+VeViVS3t0BgpfLtggNboNYmFwWUKFYjrHS5XYztKrxUMRWklh5p0MuUTO48n4KjuxJ 517gGOpgHBgXLk/Gchct2lKq4AkKWJNCllJaaNxlUwha9MskL2vHkeH8fR9Ga4BPVg4ruLkJL6 gDpXkOG4uIKus/RheY+uAB5d576rOYLRyPjnq/cXz67ZY2myIwSZ+xuFeQAVpBWx7Kv7rIRSgU UsuJ/9jjpzb7iUR0V+2EFGME/kGWrmpRz4K+m9GOqPM7uw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qt1-f181.google.com) smtp.remote-ip=209.85.160.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1676285895; bh=ekK44BoGnc4jpQBJVgFcHNTPvJE9rvOe+VA/mulohyI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=lH5w4u+xUDlnrivRZV+nqnxJhUOLYRL/E1zA/QlcJY3aIM39dGmYThKqnumq+f8lYl+gxOtwR7 BuE498UauyjiqV7SYPOonPaQNZmYKPuB1dHaQVfRo/ez2ja5/VFMaNPYpcUpIOqmQf4q1KEV9u 3UXd7HoC81BGSfYargA4c/oSR3aS+Gu7NZOA3hvhAuyv1AgHhBdueZ1jXOenJ4nPbuysoC++cJ TDf3+bnhf/Jwb4Bt7ArnQBiy55FMTZjneOy4fIsWORlX2Gnp2O61YZy+rveFzvGj9sm8K319IV /KnKNXYC6wtIGYB78AsHNh39XnD2tibFVrZg049CKzfJ4w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=ekK44BoGnc4jpQBJVgFcHNTPvJE9rvOe+VA/mulohyI=; b=X4LAA0M/yIfaSMdy8Re47QbhSQ bGjL4wLbP1rRob53Il9HnFUm4lQHSFQPSPb3EKPxf1ugv+2BN3RXJNHqbUlOuD//IWWF2DeT712yg oZrWkx1s86lXz2y4R6fDNcwBYiLWNgituKXPlGM9mn4Zrahmq82VWgpZWNNzoK8mip8mZBjIsfyGX R2NXnuA5Ya8VLwRi0kf3uTz/mSv4RtRbQjXP1OlY+QFds+7apqsuq7MmgZo/MolV2Z/SW5YuegUmW myOBw6KoCyQn3vHUXA3lA6eE7GZyIc9EoFa5iuXWY8a0t788m+AUImzp9y/WcGW/LR9ewVkMhHghH nF8CroPg==; Received: by zero.zsh.org with local id 1pRWXF-000AQH-Lv; Mon, 13 Feb 2023 10:58:13 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qt1-f181.google.com) smtp.remote-ip=209.85.160.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-qt1-f181.google.com ([209.85.160.181]:33283) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pRWWG-000A58-Oq; Mon, 13 Feb 2023 10:57:13 +0000 Received: by mail-qt1-f181.google.com with SMTP id h24so13309912qtr.0 for ; Mon, 13 Feb 2023 02:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ekK44BoGnc4jpQBJVgFcHNTPvJE9rvOe+VA/mulohyI=; b=Gm+1shAzm0mgPJQ8hDvUdMc7dw7ujNe+KfPdTo7SvUNt3TLawZkKl+D2NXX4uLyLxo zIBdwxjFnboY3hXOnBWI10T1zhRUO3/iZJoFpfM+ktSmf3ZYxInNulIPPkPp6IYzeY8M 13jCHydMDS1VnyAmNJPGkTwrr3HMIIYz3XGmGBCbWBb2IX2zT9H6oPaAvq93h1Aj9ihP CcXUcMIrMzKE+aMKOjpRcI4NpCEfYxjb3eXPAheFqTLdIKVZm/f7SvmwwZRq4HKlUKIz kT4ooF/WHwUOAG+9OdqCS2ZyLBoCE99oJwHXL0BsMTfAaGM0h2sGembicIDkIyy91zH+ y2eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ekK44BoGnc4jpQBJVgFcHNTPvJE9rvOe+VA/mulohyI=; b=v00R8Ldc//QNJTqo5ZX4U1K29ND8oM51gU9RMdhnvRWo445gIfy8+wZq3ZFIOO++18 ioiN4VTULOjysauKYSYTnYohiViHN/wtfPejJIhhdLRk/tBa5DDJt9xFejqh80O9aODR Vzqw+VdMmffbeFqUiJvIH7AeyzaXt3s9iclqqLWCwl3KGTIDNcaS8c1tnYwql65ykZ7A XhsnaUcqIUN8gZD7yTSi8MZNubb8Cp8xbwPnADcHCCTGkKQahgwbyiI7cOn20/K+dnb3 tDYqWuKyaTFB1cauN3+AyAyIvfKUhAX61Q1UOZiCSC0ok8BNuamrJF3ClcxizvCVV2dH P3Ug== X-Gm-Message-State: AO0yUKXY1b4npR5h5GcvDttP4NebDEV+ugk836eynvixmLqYBEEP+ZFL uoupuzAR4LVUWQde+mgIk1rI+nIf3S8N++ypjdDk/BCDYCk= X-Google-Smtp-Source: AK7set8osBOdeAA0P/0WGmiuiZno8xBuVS/vRrHVUjOpPkUiC4+RejAD9Ffko0awVBFAB+se7hRqc1nL07wbbAeWrvA= X-Received: by 2002:a05:622a:1cd:b0:3b8:6c84:aee2 with SMTP id t13-20020a05622a01cd00b003b86c84aee2mr4027758qtw.282.1676285831697; Mon, 13 Feb 2023 02:57:11 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Kalm=C3=A1r_Gergely?= Date: Mon, 13 Feb 2023 11:57:00 +0100 Message-ID: Subject: --init-file option To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000008a57ad05f492b5c0" X-Seq: 51422 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --0000000000008a57ad05f492b5c0 Content-Type: text/plain; charset="UTF-8" Dear Zsh maintainers, I was wondering if there is an equivalent to Bash's --init-file option or fish shell's --init-command option in Zsh or if one can hack around to achieve the same effect. I would need to be able to source a virtual environment activation file after the Zsh startup files were processed (but before a command is executed) in order to be able to start a shell or run commands inside a Python virtual environment. I maintain a tool for managing Python virtual environments ( https://docs.logikal.io/pyorbs/) and I had no problems with supporting Bash and fish (https://github.com/logikal-io/pyorbs/blob/main/pyorbs/shell.py#L45), but I'm not sure how to achieve the same behavior with Zsh. I'm aware of zshi (https://github.com/romkatv/zshi/blob/master/zshi), but I'm wondering if there's any other option that does not involve hacking around the zsh startup files. Thank you and kind regards, Gergely --0000000000008a57ad05f492b5c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Zsh maintainers,

I was wondering i= f there is an equivalent to Bash's --init-file option or fish shell'= ;s --init-command option in Zsh or if one can hack around to achieve the sa= me effect. I would need to be able to source a virtual environment activati= on file after the Zsh startup files were processed (but before a command is= executed) in order to be able to start a shell or run commands inside a Py= thon virtual environment.

I maintain a tool for ma= naging Python virtual environments (https://docs.logikal.io/pyorbs/) and I had no problems with suppor= ting Bash and fish (https://github.com/logikal-io/pyorbs/blob/main/pyor= bs/shell.py#L45), but I'm not sure how to achieve the same behavior= with Zsh. I'm aware of zshi (https://github.com/romkatv/zshi/blob/master/zshi), = but I'm wondering if there's any other option that does not involve= hacking around the zsh startup files.

Thank you a= nd kind regards,
Gergely
--0000000000008a57ad05f492b5c0--