X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=DseUWJ9
	Xeli/G3VzXPUcJHnwd4mNAUaMHU4gs7QQgkCE9Sqb5L345qBgC78YrqLtMFDyKgj
	ZIGbKtmQUIXAnYVIn62QX2M3Exkkoew/d54Npf6PTfibODuksfoDRbia3vdnxVNg
	3ptG8pXk4ipEg7JWPfCQuVENiAz4tsGRBzTU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; s=default; bh=G95/CJS7XOQDO
	RLgSZ/mdSu50uU=; b=PeRho/defQvOPSgQOf8yGvgGnk31Xo7dfMMRDwWx7bxKw
	qGGUxOjdKYK84dRPW0gwB5q8DVNN5un6FvM0ZaLCHqrpGOHYwmzQNuWscgSDneFm
	csQbIgPmhWN52+bK2sBvVGPy3uWAO1CQlof/XPPJA3GfNqalGnf4iC13WNk1cI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,TBC autolearn=no version=3.3.1 spammy=bin,lib,share, profile.d, profiled, customization
X-HELO: mail-qt1-f176.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=morrison-ec.20150623.gappssmtp.com; s=20150623;        h=mime-version:references:in-reply-to:from:date:message-id:subject:to;        bh=NRf/MuxtT04L55iCa2PpYnzDe5q/kHhEHRGKjz5VtVE=;        b=XK2WQkmQNkQTXax+hBwHwMj0PMix7/FjaS/p8OZIxJ4lpXcIjX/eQXRf2kkaBZPAb3         rMrY+A6WLo1txaZX+gZOHdu77PaM6b1sAXP4kxAvv8oN9hTxZHGubxbQdCgIBGvJzo60         2U43x+Ougx7Eqe29ktDTLTYGVJy3VKshjbgflYKJFrUYbHY4/EvfN04/y7H/C05RYE8I         eCFwd39uc/2FuNl9WexBE8xCejF2TerC4j8kkVRwQM0tF29qBmR7LXfbIOu3myEPh9pK         k2h9qW2JKX6ltSng5AgDA9ihvkj5Bb7bo54O6cfzmws4UBUeAj2CiIpWZOnfUMM0GMLn         SAJQ==
MIME-Version: 1.0
References: <CAAgpg9aoVkqmxHxsEjjbYFFftrtvfVJk9HLbUKh0h1r3LgweAQ@mail.gmail.com> <147454c3-692f-a541-4019-a557773faff7@SystematicSw.ab.ca>
In-Reply-To: <147454c3-692f-a541-4019-a557773faff7@SystematicSw.ab.ca>
From: John Morrison <john@morrison.ec>
Date: Mon, 8 Apr 2019 18:46:38 +0100
Message-ID: <CAAgpg9ZTKzfbOrtLJ__M-uZ4_JmvkqQRePb0BYCPJCbRc5GyMw@mail.gmail.com>
Subject: Re: base-files revisited
To: Brian.Inglis@systematicsw.ab.ca, cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

On Mon, 8 Apr 2019 at 08:05, Brian Inglis wrote:

> On 2019-04-06 08:08, John Morrison wrote:
> > I've been asked at work to get the standard base-files extended with
> > specifics for the company I work for and wondered if this would be a good
> > time to revisit how the .bashrc file in particular is put together.
>
> You might want to consider using standard /etc/profile.d/ scripts named
> for, and
> conditional on, your company domain, Cygwin, shell, and components,
> depending on
> how you want to do things, possibly installed from
> /etc/defaults/etc/profile.d/.
>
> Or you could put a <domain>.sh driver script in /etc/profile.d/, and source
> scripts from /usr/local/{bin,lib,share}/<domain>/.
>
> You could use the Xwin directories ~/.local/ and ~/.config/ if you want
> user
> specific customization, perhaps setup in /etc/defaults/etc/skel and
> installed by
> a custom postinstall script base-files-<domain>.sh.
>
> Or some combo of those and other standard approaches to local
> customization,
> like .${OSTYPE}_profile, .${OSTYPE}rc, .${HOSTNAME}_profile,
> .${HOSTNAME}rc, etc.
>
> Have a look at the various systems and shells and their initialization and
> customization approaches, and adapt some existing infrastructure, rather
> than
> stuffing something unique somewhere unexpected.
>

I'm sure these would work or could be made to, but this is intended to be a
starting point for users to modify (with company placeholders), not
globally enforced, but thanks!

I've got a base-files-<company> package, but wanted to extend the .rc files
installed by base-files. Achim has proffered some ideas along that front
(see other mail).

I wasn't trying for something unique, just trying to get things a little
easier to customise :)

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

