From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26346 invoked from network); 27 Dec 2021 02:52:52 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 27 Dec 2021 02:52:52 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 2714A9CFCA; Mon, 27 Dec 2021 12:52:51 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 416309CE84; Mon, 27 Dec 2021 12:52:40 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MUOSuhxJ"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id F330E9CE84; Mon, 27 Dec 2021 12:52:38 +1000 (AEST) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by minnie.tuhs.org (Postfix) with ESMTPS id 43BF49CE58 for ; Mon, 27 Dec 2021 12:52:38 +1000 (AEST) Received: by mail-wr1-f41.google.com with SMTP id t18so29745208wrg.11 for ; Sun, 26 Dec 2021 18:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5WVQOUyq/xrB6SZA6znXnLRl4vC1srg4ByenmlHfQyU=; b=MUOSuhxJs87T4nDB5+6s9BKParEIil7MTLZ3XLdd0QGX3LpewF8iiuZpSZ7SQcbSls wjcmnhRuB2sYH4KiP4KoYIu91J/LmHGBvx8H9J/Fkd5YK+KOlCehMY/B/s9DiN874iNS Z1P3WjtyYR9J0al4YsN7gy7CUoDokUtMTIYfr7IK9thF48SQTYafUlR7X4RVoFzQL2VE T2DqDMZw3C+TTDCfUR8k29+5Y5PGznegzCxO124wYTthKPJ1WSZr1f3JW+h/XxXKNG+k s8BcM35XAiENEMp31AEAj0v+sK+g1mxFWoI+HZTzOK7mKCX0LQOJleQIbrEcf+E4Q+rE icVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5WVQOUyq/xrB6SZA6znXnLRl4vC1srg4ByenmlHfQyU=; b=r5N1oFMupNwydoD+KnCTj9yOi4RLkKkQTJVa0XeW7NV1dWh010kKwZZjo4kLB1BjSf hOE4SywcC7mNEAcAJNsqWxM3hsmJXqwA8acNRSKmzOxZK0V/eTKZDchrST1L2+xQ1/99 tweStAmM/vK7heoc+XeUsMC8paECt3ALejigur4nAMvyObkKL0hkqtk4/meVmFg6z+Kl 9D7aUHFT74HHe6H/lu4Zze0Xli1lMpC/X8c3zn8Q63lrZFcZSnaQE4KnorcktXvNEKBP lFgcfV73uE9pPj08F5S7CRhenD2YME6MHmQtzx7PCDc4yVP0xxokmVwxt5BlCr5w+nbv 3Lyg== X-Gm-Message-State: AOAM531dl8lZeoIfmgZ/IaSgjqeNtbMVPzmtLFBFlXN7K6iMQz3WxchV eGXOdBNNZIziy1iGC7FeXUumotodYDtM+B7hSYhqqMEuEQ== X-Google-Smtp-Source: ABdhPJzKDh/dwnppoIzuMxwaihQvVlTepK4d1a+wOnYvexETapWShVt+1x796lWAck/7EgGl3XJ9gvb65bF+Uh7G3BY= X-Received: by 2002:a5d:64c6:: with SMTP id f6mr10817930wri.711.1640573556393; Sun, 26 Dec 2021 18:52:36 -0800 (PST) MIME-Version: 1.0 References: <20211225231941.GB83649@eureka.lemis.com> <20211225234337.cWiBV%steffen@sdaoden.eu> In-Reply-To: From: Rudi Blom Date: Mon, 27 Dec 2021 09:52:24 +0700 Message-ID: To: "Theodore Ts'o" Subject: Re: [COFF] What is your prompt? X-BeenThere: coff@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Computer Old Farts Forum List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: coff Content-Type: multipart/mixed; boundary="===============4195145256172102268==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============4195145256172102268== Content-Type: multipart/alternative; boundary="0000000000000e8adb05d417cc51" --0000000000000e8adb05d417cc51 Content-Type: text/plain; charset="UTF-8" My official status seems a bit unclear (although I'm getting paid :-) ) but unofficially I keep an eye on a lot of a customers servers. Ad-hoc shell scripts still have similar structure as I know how to 'cut and paste'. These scripts are run remotely via a 'homegrown' client-server setup. Many should run on different UNIX environments and therefore have near the beginning an OS check. Depending on that I can set PATH and anything else important. # # check what type of OS this system runs on # OST=`uname -m` case ${OST} in "i386") OST="SCO" ... ;; "alpha") OST="ALP" ... ;; "ia64") OST="HPU" ... ;; *) echo "unknown OS type ${OST} ... \c" exit 1 ;; esac On Mon, 27 Dec 2021 at 08:33, Theodore Ts'o wrote: > On Sun, Dec 26, 2021 at 02:33:03PM -0700, Warner Losh wrote: > > I have symlinks to all my files. I also have special hooks that I run per > > os and per host to pull in different configs when needed. Though in > > recent years I've not needed it much. I used to do a lot for work like > > this, but these days work envs are close to my home env, so there is > little > > point. > > I have a bunch of work-specific aliases which get picked up via: > > if [ -f $HOME/.bashrc.local ] ; then > . $HOME/.bashrc.local > fi > > I don't keep .bashrc.local under git control, since some of the paths > in those aliases might be considered Work-confidential, so I don't > want to push them out to a personal git repo. > > > I've been doing this since RCS days across 5 different SCMs... git makes > > oopses so rare that the paranoia below seems overkill. Though for other > > SCMs it would likely not be paranoid enough. > > The backup directory isn't for paranoia, actually. It's so the first > time that I install my custom dotfiles on a particular machine, if > there is a prexisting dot-file, say, .profile, I copy it to the backup > directory before replacing it with a symlink to the dotfiles repo. > > There might be some magic environment variables or PATH setup that is > unique to that particular system's default dot files, so I can take a > quick look at them and see if I might need to extend my generic dot > files, or maybe add something to the ~/.bashrc.local file, or some > such. > > - Ted > -- The more I learn the better I understand I know nothing. --0000000000000e8adb05d417cc51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My official status se= ems a bit unclear (although I'm getting paid :-) ) but unofficially I k= eep an eye on a lot=C2=A0of a customers servers. Ad-hoc shell scripts still= have similar structure as I know how to 'cut and paste'.

<= /div>
These scripts are run remotely via a 'homegrown' client-s= erver setup. Many should run on different UNIX environments and therefore h= ave near the beginning an OS check. Depending on that I can set PATH and an= ything else important.

#
# check wh= at type of OS this system runs on
#
OST=3D`uname -m`
case ${OST} in
"i386")
OST=3D"SCO"
=
...
;;
"alpha")
OST=3D"ALP"
...
;;
&qu= ot;ia64")
OST=3D&qu= ot;HPU"
...
;;
*= )
echo "unknown OS = type ${OST} ... \c"
exit 1
;;
esa= c


On Mon, 27 Dec 2021 at 08:33, Theodore Ts'o <tytso@mit.edu> wrote:
On Sun, Dec 26, 2021 at 02:33:03P= M -0700, Warner Losh wrote:
> I have symlinks to all my files. I also have special hooks that I run = per
> os and per host to pull in different configs when needed. Though in > recent years I've not needed it much. I used to do a lot for work = like
> this, but these days work envs are close to my home env, so there is l= ittle
> point.

I have a bunch of work-specific aliases which get picked up via:

if [ -f $HOME/.bashrc.local ] ; then
=C2=A0 =C2=A0. $HOME/.bashrc.local
fi

I don't keep .bashrc.local under git control, since some of the paths in those aliases might be considered Work-confidential, so I don't
want to push them out to a personal git repo.

> I've been doing this since RCS days across 5 different SCMs... git= makes
> oopses so rare that the paranoia below seems overkill. Though for othe= r
> SCMs it would likely not be paranoid enough.

The backup directory isn't for paranoia, actually.=C2=A0 It's so th= e first
time that I install my custom dotfiles on a particular machine, if
there is a prexisting dot-file, say, .profile, I copy it to the backup
directory before replacing it with a symlink to the dotfiles repo.

There might be some magic environment variables or PATH setup that is
unique to that particular system's default dot files, so I can take a quick look at them and see if I might need to extend my generic dot
files, or maybe add something to the ~/.bashrc.local file, or some
such.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 - Ted


--
The more I learn the better I understand I know = nothing.

--0000000000000e8adb05d417cc51-- --===============4195145256172102268== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============4195145256172102268==--