Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: --init-file option
- X-seq: zsh-workers 51429
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Kalmár Gergely <kgregory89@xxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: --init-file option
- Date: Mon, 13 Feb 2023 13:46:03 -0800
- Archived-at: <https://zsh.org/workers/51429>
- In-reply-to: <CAKue2cRDk0j_4jPmQd6rQxb3utc5N=BvS0jDSrOXVASLbDcyqQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKue2cS2c8TuUgWQxOYjgJ9pEnGb7mx-9RZRD-FnWO2afmvv8g@mail.gmail.com> <CAN=4vMqxKA6yzJgfJZ5cCRT8htPL9pi1NYpeeb+fws04oK3+kQ@mail.gmail.com> <CAKue2cQ0dC3_TyXYVsqWOtBb+Rsv4=1VztBAnKO+iNJ1x=94gQ@mail.gmail.com> <CAH+w=7boGStuymRmwSR55yCys8=qBVASCzO9ks+RvoZFgv7pPQ@mail.gmail.com> <CAN=4vMpTEL7cQJppNzxO8GPUagS=nu-SN4aYH=ZULEMUtSV8aA@mail.gmail.com> <CAKue2cRDk0j_4jPmQd6rQxb3utc5N=BvS0jDSrOXVASLbDcyqQ@mail.gmail.com>
On Mon, Feb 13, 2023 at 12:59 PM Kalmár Gergely <kgregory89@xxxxxxxxx> wrote:
>
> Yes, I could do something similar as what zshi does, but that seems like a suboptimal solution, because it would require a duplication (and indefinite maintenance) of the startup file processing logic in an independent codebase.
I don't follow that at all. You're keeping the file for --init-file
somewhere now (I presume), so why would pointing ZDOTDIR at it require
a new codebase?
Anyway "bash --init-file" replaces (both global and user) bashrc
rather than run the file after them, which doesn't match what you
originally asked for. Does it in fact do what you want?
Does your file need to create internal variables or functions, or is
it just populating the environment?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author