zsh-users
 help / color / mirror / code / Atom feed
From: Jim <linux.tech.guy@gmail.com>
To: zsh <zsh-users@zsh.org>
Subject: Using script to find location of global rcs files.
Date: Sat, 26 Jan 2019 06:55:34 -0600	[thread overview]
Message-ID: <CA+rB6GJBTN_BzedW=CvpxFHXMMZyuQWTU04dEEZVNwJvrxG2wA@mail.gmail.com> (raw)

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

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 haven´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¨?

Thanks,

Jim

             reply	other threads:[~2019-01-26 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-26 12:55 Jim [this message]
2019-01-26 18:10 ` Peter Stephenson
2019-01-26 18:38   ` dana
2019-01-27 13:11     ` Jim
2019-01-27 14:32       ` dana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+rB6GJBTN_BzedW=CvpxFHXMMZyuQWTU04dEEZVNwJvrxG2wA@mail.gmail.com' \
    --to=linux.tech.guy@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).