delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/08/13:46:59

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com> <147454c3-692f-a541-4019-a557773faff7 AT SystematicSw DOT ab DOT ca>
In-Reply-To: <147454c3-692f-a541-4019-a557773faff7@SystematicSw.ab.ca>
From: John Morrison <john AT morrison DOT 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 DOT Inglis AT systematicsw DOT ab DOT ca, cygwin AT cygwin DOT com
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019