Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
--enable-etcdir for multiple locations (similar to PATH)
- X-seq: zsh-workers 38753
- From: Ben Woods <woodsb02@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: --enable-etcdir for multiple locations (similar to PATH)
- Date: Thu, 23 Jun 2016 12:14:17 +0200
- Cc: adamw@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc; bh=YaQRVkb2kroXXEhxzvKksM/1rMH1tAm+7MrKa78Frlw=; b=vkkqUojifdXpI2sgI8uj1GAxgaudpXrIyi7Y4wVc7uCBIuCOGBa3ORH0pZyXd83GCZ lrq6qUaoPB2A8CpQIplX7FDHs5id31NLQ1qI1DQfp4x8/FRa0Fs8ykRF08OddWkFEIYH pPwMlYQr39EoE7T9kkSsH/teQobymewKdBh6luM/G1LzfhO32As5nVp0ZJq4NB7gm5F/ KIqmERfN85A7io7RMnDlqBb6TwXBiv1V0qZ1vfmzEp1nmPfpCcgs0l/Pq7X46+lncoGT atfdSZ3muedp2gULJ7miPrtKfZ8xl5THhh82WveNsv4zW4GB684J4C8H/5U8Ahy2PiYl NBuA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi everyone,
I am wondering if it is possible to tell zsh to look in multiple different
locations for it's startup/shutdown configuration files?
I believe it is possible to change the location that it will look for them
at compile time with --enable-etcdir=INSERTDIRHERE. However, zsh then does
not look for the config files in the default /etc/ directory anymore - only
the newly specified directory.
As an example, it would be good if zsh could be configured at compile time
with a list of directories to search for config files in. If /usr/local/etc
is added to the list, it would look for /etc/zshrc and if it is not found,
it would look for /usr/local/etc/zshrc. The priority would be in the order
they were specified in the compile time flag (similar to PATH) - or they
could even both be read and compound each other.
This is important, because in FreeBSD, configuration files for ports are
not supposed to be in /etc, but in /usr/local/etc. However, we are aware
that many people with read the official zsh documentation at the link below
and try to put the configuration files in /etc.
http://zsh.sourceforge.net/Doc/Release/Files.html
Thanks for your help.
Regards,
Ben
--
From: Benjamin Woods
woodsb02@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author