From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EAC8AUAJAGcuCwEAe85BDQ:P1 (envelope-from ) for ; Fri, 04 Oct 2024 15:26:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EAC8AUAJAGcuCwEAe85BDQ (envelope-from ) for ; Fri, 04 Oct 2024 17:26:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728055615; a=rsa-sha256; cv=none; b=FgWO5wiPeunUb9mpywW2cC3A23BDly9HbQ89rr6qjnpMCmo9J3EjiqP+2I5Rel9J4sqWJ4 wziQlOrIU5RwyhXQ2fvd9FtqJFiiUSuLKCodWp6+f7GUPydXoRwzBTy8q/tKgIB9jyb3RV g4rnZkTdxEwCytbYwgZWJtfzH4TNdITUyGxBqKdO/sV6r2Ru7yF4eJnCAYSA+rw87wHbcM uRmgtFKu7WhLqxxdfw+yzDF9f6y5kcW8E2ZIwv3dhOgjQyP7hDu3x2BsRjnD4WXJP4Iw8y Rk93jDIlMQirchj07Je4ohrlAQhgqixYxhZydPICHzWu7j/XjyFSR51uPjAarA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728055615; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=TppJUZhBP7CCplRU59soxnQ872uKD0tZ3xrNF1Ch4Ug=; b=f3sXxZ3tAf+ANArOjHHRoVf/k0KNumV2/6eXBkTKwqxg8AR81nqdLwFnGPczxLZ3RD6lh0 pWPLGvYl2pndiaugmasyHp1BQBLKJ/gcZpWZUYn2ytIaDVNdRgSQh+g7Okmkjf2Mr9nMI0 9MntxtFhWvbHNX2pjBXzsIWkstddFQAk3Flthry9slkZI1Dr7+6Uk/8iJcKi85OQM6M8yk oZNWUdsYi922TurnQ4JX7/T7Jd9C214l7jjfMy2yMMc+ZeIVQJFqhYKWSVataM6X3JxdmX /KqRPfA7wLDcIeQe7uTZnm3FzG+X0dSYVYj9UuN/LpTGpEVyUec6vFG+EJ8oaA== 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 A20701EFC5 for ; Fri, 04 Oct 2024 17:26:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swkCJ-0001yV-TH; Fri, 04 Oct 2024 11:26:27 -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 1swkCH-0001xt-2E for guix-devel@gnu.org; Fri, 04 Oct 2024 11:26:26 -0400 Received: from smtp.umanwizard.com ([54.203.248.109]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swkCF-0004Wl-MI for guix-devel@gnu.org; Fri, 04 Oct 2024 11:26:24 -0400 Received: from localhost ([90.162.14.19]) by smtp.umanwizard.com ; 4 Oct 2024 15:26:20 +0000 X-Fes-Received-For: guix-devel@gnu.org X-Fes-Received-From: From: "Brennan Vincent" To: guix-devel@gnu.org Subject: Configuring aliases in bashrc with guix home Date: Fri, 04 Oct 2024 16:26:17 +0100 Message-ID: <87msjjdh46.fsf@denver.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Fes-Encrypted: true X-Fes-Ehlo-Domain: localhost Received-SPF: pass client-ip=54.203.248.109; envelope-from=brennan@umanwizard.com; helo=smtp.umanwizard.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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: 0.43 X-Spam-Score: 0.43 X-Migadu-Queue-Id: A20701EFC5 X-Migadu-Scanner: mx12.migadu.com X-TUID: pgmbYLf13Jua Hello, By default, the `home-bash-service-type` creates a .bashrc with the default bashrc (defined in %default-bashrc in gnu/system/shadow.scm), followed by user-defined aliases, followed by a user-defined bashrc file. The problem is that %default-bashrc already contains some aliases: alias ls='ls -p --color=auto' alias ll='ls -l' alias grep='grep --color=auto' alias ip='ip -color=auto' which makes it difficult for the user to manage her own set of aliases. 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. 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.