From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wE1/DuU3DGdQEQEA62LTzQ:P1 (envelope-from ) for ; Sun, 13 Oct 2024 21:13:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wE1/DuU3DGdQEQEA62LTzQ (envelope-from ) for ; Sun, 13 Oct 2024 23:13:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=freakingpenguin.com header.s=x header.b=A5xtSE94; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728853989; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZL/6AYzTerLMiM1IsN6K7oQegxKZ4/Bp+EbsYuCYVOU=; b=FqTIyloQW0wjYLa1t38qxJpIccBQAdHg9UG0g3A4hW4gWFoGQKUXudwignf2UiQOPYud/g tlGoG3HjLEBkzH2l1IvFxCVlZo1Uwh1F9Vs6+rfumXDQL1fC5MldCUJvKy3LrTlv5QR0GM IDtKcLjxiWPTovDrGwRvk8T6eboFyuVL0CWZEJYy9kp5rj62D7d0BTi/N27QnpIudq87OI sD3AFjl/WxKignU9+PvUtVDFqDDXNhFUR+37nXEbUZLzmjf+8uVVIdC2xCey2qJRXYQ+3e +hUmkqARO4Dzv+k9CZ4cUUEYJjMLLgqzrk/2LkAumF+utie6EdCxxOk9IiCahg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728853989; a=rsa-sha256; cv=none; b=rcIpqplkbiYKuXKJTcr7BOIWSeI3XJ6b4iJhK/FJTXezv/P9gw5l18m2nb61cNEzpuuCS/ fOQaRds+xebixkrrdYjFBOEDG/VoMKf0b15GWThKLu1/FaBcH3iv/6GZEx/c0cNbR/m2u4 TwHoYmyZy2kHJiuWZ2FnNG0rbZHFD7IxHfYHIlzUP8/LQD/9WvMp3+BRDNDMj0sRM/Fk6d iZ6CAdeIelXR/aJUNxoTCqh5XLRB8zRo7NtbRERA+FyONaOBy3Ark8F3sL3+cHtbr287fn 8xK+srP3RqQpqOwgpaf+9JsSsKdVSW70ubeFdIyoa+Lkarb+YNnQNqMhSNZzJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=freakingpenguin.com header.s=x header.b=A5xtSE94; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A9B4E5F897 for ; Sun, 13 Oct 2024 23:13:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t05tK-0001Ii-SZ; Sun, 13 Oct 2024 17:12:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t05tI-0001I9-9T for guix-devel@gnu.org; Sun, 13 Oct 2024 17:12:40 -0400 Received: from mail-108-mta183.mxroute.com ([136.175.108.183]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t05tF-0003LH-H3 for guix-devel@gnu.org; Sun, 13 Oct 2024 17:12:39 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta183.mxroute.com (ZoneMTA) with ESMTPSA id 19287b512f40003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 13 Oct 2024 21:07:24 +0000 X-Zone-Loop: 71735b52c78b284fba8bd823e786e72b29a8ae2b9772 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZL/6AYzTerLMiM1IsN6K7oQegxKZ4/Bp+EbsYuCYVOU=; b=A5xtSE94cDnQdcu9EKAq36kHy6 QftwcJjwzLms10t/nbD3Mgp95ec8eAqQXbBrtlHF1N35/VuxbPKF9k5UCUKAmvFk7tgv5iOrsYfiR vXXJB6EBujpGC2r+HXQ+fW6hR045jpKnHShKk8H9F/6SKLIzCZ7AnDvnpSZe11jG4K3ZLcjZ3GVOC MPHku2YRn+UPYOxScDtDKsEtKL9XR5xKMIOzLpMUVFaNzkvA8QhUVOMNTI6hh4I7LnYeckO1VTHL1 qbRjXD410RvoT+tlIwOYUaJVKxU7Z74CxAbyMplKNE1PC33PAgpfkTjK5F4LdLTQXns1Foz70eeI4 8P+c38zQ==; From: Richard Sent To: "Brennan Vincent" Cc: guix-devel@gnu.org Subject: Re: Configuring aliases in bashrc with guix home In-Reply-To: <87msjjdh46.fsf@denver.mail-host-address-is-not-set> (Brennan Vincent's message of "Fri, 04 Oct 2024 16:26:17 +0100") References: <87msjjdh46.fsf@denver.mail-host-address-is-not-set> Date: Sun, 13 Oct 2024 17:07:14 -0400 Message-ID: <87jzebsoe5.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.183; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta183.mxroute.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-1.255, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.19 X-Spam-Score: 1.19 X-Migadu-Queue-Id: A9B4E5F897 X-Migadu-Scanner: mx13.migadu.com X-TUID: u0UIFYYxTvYq Hi Brennan, > If the user wants to remove all the aliases from %default-bashrc and > set her own, she can run `unalias -a` in her own bashrc first. But > then she can't use the user-defined aliases mechanism from > home-bash-configuration, since that is added to the file before the > user-defined bashrc. Correct me if I'm wrong, but aliases can be overwritten, no? A user who wants %default-bashrc but without aliases can redefine any aliases they prefer in the aliases section and unalias the rest individually at the end. A bit unwieldy perhaps, but not unreasonable in my opinion when there's only 4 aliases. > My suggestion is that when aliases is set in home-bash-configuration, > we remove the predefined default aliases from %default-bashrc. Or at > least provide an option to do so. I'm not a fan of removing it by default, among other reasons because it would silently break existing setups and the current behavior is documented. Perhaps instead %default-bashrc can be broken down into sections and users can enable/disable parts of it piecemeal, e.g. --8<---------------cut here---------------start------------->8--- (guix-bashrc-defaults ;; default #t for most fields (aliases? #f) ;; (source-system? #t) ;; (sane-ssh? #t) (prompt? #f)) --8<---------------cut here---------------end--------------->8--- This could allow for a more comprehensive and opinionated default bashrc to be packaged with Guix while still maintaining user control. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.