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_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22312 invoked from network); 26 Dec 2021 21:33:23 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 26 Dec 2021 21:33:23 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id D96119CFCD; Mon, 27 Dec 2021 07:33:22 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 80A479CE84; Mon, 27 Dec 2021 07:33:16 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20210112.gappssmtp.com header.i=@bsdimp-com.20210112.gappssmtp.com header.b="Xcd6v96T"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 594BF9CE84; Mon, 27 Dec 2021 07:33:15 +1000 (AEST) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) by minnie.tuhs.org (Postfix) with ESMTPS id 4CB4C9CE58 for ; Mon, 27 Dec 2021 07:33:14 +1000 (AEST) Received: by mail-ua1-f44.google.com with SMTP id v14so6493534uau.2 for ; Sun, 26 Dec 2021 13:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qWz6cVzLEzEcK2T60frGMwmHwQRHlS7fE1sLJrTzo0g=; b=Xcd6v96T3/Qw5Hh6pou9BwjGzzcgiRo+Z+7rAYcgZCp7D/VmMwgdi/5CE595gJzTys P3c3IzpyHwgxf9TOnvtRGHeZdSrY3YHnBOLuBhF15Xj5N6nj9OzYz+e2KDBCNZ3hKbn8 0JrRw3btg+w6LuHP/GO7WOa8glOiNwo3bY11TvrhvMFwdE4dJQA/LzQzDfVHNA97F9Xn qrCnqybPpBZILVA4RvHPFL8aKQaJOKBMtu37vfjCZi5zEPKaVVF9ioEfDuYjTGaLywfP ykjbTuCcLdPgT7ry/j7pQ6U9EYHg5nxN8F+QBtipm3+V4RnMK6dtpUUoBx/MFwj8CtAk lJdg== 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=qWz6cVzLEzEcK2T60frGMwmHwQRHlS7fE1sLJrTzo0g=; b=Cuh8WNOAU1vATkJtsFAANJayg7r0HI7gAykXkxDKtxsHIutVBB3mNp/57oOK0P1ssx MyLG9yjc9CuSXpvZcE6t0u2U/4inT5fOY2n8MRYW3MlxCuXanp3tNeyPaAEbdMdqSYZ+ kR+pWZFpSojP/iPGc1yOD6cg4a7byq+Pn+KN1ZGwIULiOQ/q6Jonm8H6l6iUiTOCHxXU jJlw1YPvmm5tC36qXOVhaO4zMHwClY8/m8SpQGpGW1MHjwDJkCzy8m9wylkAJJu+U/zI 6ihJztmLD9uv/gwcDbah+NmxpekGXwSvd4Zt0Bs/iJrcbJPrGKNf3GP67L6jvM0SyupM 5BeA== X-Gm-Message-State: AOAM53137AOgHiOWCfKqN34HEgn0F/GD1KAXG+WnUoz1ZFQzJMGCrsuR +sRxMw87DDYNLpP2gODcT21HikSTMb54fp1qD0HTew== X-Google-Smtp-Source: ABdhPJybzhpTm5ChbC5VUglZqZmIl/bhpEFQPzvPzmLXvnlN+uiOqmtl0HKpf46c0OSzuVfUc6JevhgGUtaiHCR9vVw= X-Received: by 2002:ab0:13c3:: with SMTP id n3mr2105066uae.39.1640554393150; Sun, 26 Dec 2021 13:33:13 -0800 (PST) MIME-Version: 1.0 References: <20211225231941.GB83649@eureka.lemis.com> <20211225234337.cWiBV%steffen@sdaoden.eu> In-Reply-To: From: Warner Losh Date: Sun, 26 Dec 2021 14:33:03 -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: Rudi Blom , coff Content-Type: multipart/mixed; boundary="===============1042197408671954247==" Errors-To: coff-bounces@minnie.tuhs.org Sender: "COFF" --===============1042197408671954247== Content-Type: multipart/alternative; boundary="000000000000d6b9e605d413556e" --000000000000d6b9e605d413556e Content-Type: text/plain; charset="UTF-8" On Sun, Dec 26, 2021, 2:18 PM Theodore Ts'o wrote: > On Sun, Dec 26, 2021 at 12:43:37AM +0100, Steffen Nurpmeso wrote: > > I usually do "scp .* HOST:" whenever i get a HOST account, and > > forget about it thereafter. > > I keep a private git repo on one of my machines, so when I get a HOST > account, I run a comand like this: > > % git clone ssh://tytso@example.com/home/tytso/repos/dotfiles . > 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'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. Warner % cd dotfiles > % make > > This installs a bunch of symlinks from > dotfiles/{.bashrc,.profile,.muttrc}, etc. to $HOME/. > > That way, I can run "git pull" to update my dotfiles on one particular > machine, and if I make local changes, I'll do a "git push" to send > them back to my dotfiles repo. > > The Makefile I have in my top-level repo some folks might find > interesting: > > .PHONY: all bin dotfiles > > all: dotfiles > > DIRS= .gnupg .mutt .config/gce-xfstests .config/gcloud/configurations bin > em > #DBG= echo > > dotfiles: > for file in $(shell find $(CURDIR) -maxdepth 1 -type f -name ".*" \ > -not -name ".*~" -not -name ".gitignore" -print); do \ > f=$$(basename $$file); \ > if test -f $(HOME)/$$f -a ! -h $(HOME)/$$f ; then \ > mkdir -p backup ; \ > mv $(HOME)/$$f backup ; \ > fi ; \ > $(DBG) ln -sfn $$file $(HOME)/$$f; \ > done > for dir in $(DIRS) ; do \ > $(DBG) mkdir -p $(HOME)/$$dir ; \ > for file in $$(find $$(pwd)/$$dir -maxdepth 1 -type f \ > -not -name "*~" -print); do \ > f=$$(basename $$file); \ > if test -f $(HOME)/$$dir/$$f -a ! -h $(HOME)/$$dir/$$f ; > then \ > mkdir -p backup/$$dir ; \ > mv $(HOME)/$$dir/$$f backup/$$dir ; \ > fi ; \ > $(DBG) ln -sfn $$file $(HOME)/$$dir/$$f; \ > done; \ > done > if test -d backup ; then find backup -type f -print ; fi > > Cheers, > > - Ted > _______________________________________________ > COFF mailing list > COFF@minnie.tuhs.org > https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff > --000000000000d6b9e605d413556e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Dec 26, 2021, 2:18 PM Theodore Ts'o <tytso@mit.edu> wrote:
On Sun, Dec 26, 2021 at 12:43:37AM +0100, Steffen = Nurpmeso wrote:
> I usually do "scp .* HOST:" whenever i get a HOST account, a= nd
> forget about it thereafter.

I keep a private git repo on one of my machines, so when I get a HOST
account, I run a comand like this:

% git clone ssh://tytso@example.com/hom= e/tytso/repos/dotfiles .
=
I have symlinks to all my files. I also have sp= ecial hooks that I run per os and per host to pull in different configs whe= n needed. Though in recent=C2=A0years I've not needed it much. I used t= o do a lot for work like this, but these days work envs are close to my hom= e env, so there is little point.

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

Warner=C2=A0
--000000000000d6b9e605d413556e-- --===============1042197408671954247== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQ09GRiBtYWls aW5nIGxpc3QKQ09GRkBtaW5uaWUudHVocy5vcmcKaHR0cHM6Ly9taW5uaWUudHVocy5vcmcvY2dp LWJpbi9tYWlsbWFuL2xpc3RpbmZvL2NvZmYK --===============1042197408671954247==--