help / color / mirror / code / Atom feed
* --init-file option
@ 2023-02-13 10:57 Kalmár Gergely
  2023-02-13 11:24 ` Roman Perepelitsa
  0 siblings, 1 reply; 8+ messages in thread
From: Kalmár Gergely @ 2023-02-13 10:57 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

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,

[-- Attachment #2: Type: text/html, Size: 1240 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-14 10:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 10:57 --init-file option Kalmár Gergely
2023-02-13 11:24 ` Roman Perepelitsa
2023-02-13 13:43   ` Kalmár Gergely
2023-02-13 20:28     ` Bart Schaefer
2023-02-13 20:34       ` Roman Perepelitsa
2023-02-13 20:59         ` Kalmár Gergely
2023-02-13 21:46           ` Bart Schaefer
2023-02-14 10:18             ` Kalmár Gergely

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).