Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Using script to find location of global rcs files.
- X-seq: zsh-users 23848
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh <zsh-users@xxxxxxx>
- Subject: Re: Using script to find location of global rcs files.
- Date: Sat, 26 Jan 2019 18:10:26 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1548526226; bh=nfhHlkpr1X2dSxX+rHwJcBiqiOJ+R4WkmuGD/xH2PXw=; h=Subject:From:To:Date:In-Reply-To:References; b=udSNwJDgzw7uxLDc7N/3Ehj4bmjnT8A1Yjg8r/db+eF4QUbehUVmqvyNnhkPyKXwE hK40Zwy2z8jeXE8lZKb8jB99DD4ddSmYcL40NSJgNfn6sj85AKsvsCkSshlBda5KRB PeykoTsDVYhUR5jkztcuTvUafo0GitGwcDz1uH9vPuxSAZBvizzTEnZASxO56Mc0yV jpf5PrxSOR+Va/j4YZdAUS3/CuzCQAkFHXC8PFeuau00Vb3WsylrEQ1ABvpqasOG6P XDrMqDDPhWERgpryTtI+Xol3b0f3krP7M5PnGJXXwB4JNn73wn332x+ZGZsUByS9+1 iL9pweF/76qaQ==
- In-reply-to: <CA+rB6GJBTN_BzedW=CvpxFHXMMZyuQWTU04dEEZVNwJvrxG2wA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+rB6GJBTN_BzedW=CvpxFHXMMZyuQWTU04dEEZVNwJvrxG2wA@mail.gmail.com>
On Sat, 2019-01-26 at 06:55 -0600, Jim wrote:
> Hi everyone,
>
> The manual states that the location of the global rcs files defaults to
> ¨/etc/¨, but on the distributions I´m using the default is ¨/etc/zsh/¨. I
> want
> to determine this location in a script, but so far I hav en´t found a ¨zsh¨
> option or variable to do this. I currently check the results of:
>
> strings ${whence zsh) | egrep -i ´/etc/.*z[spl].*[tvecn]´
>
> Does anyone know a better way of determining the location of ¨etcdir¨?
No, I'm afraid I can't see a better way --- the value is baked into the
shell but without exposing the value at the shell language level, nor do
we install any zsh-config script that might tell you. This is ancient
stuff from before configuration became something more than just a dark
art...
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author