From patchwork Wed Oct 4 15:36:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 54481 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 30D1327BBEA; Wed, 4 Oct 2023 16:39:01 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 240A327BBE2 for ; Wed, 4 Oct 2023 16:39:00 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qo3xX-0000AY-LL; Wed, 04 Oct 2023 11:38:47 -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 1qo3xU-00009x-SL for guix-patches@gnu.org; Wed, 04 Oct 2023 11:38:44 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qo3xU-00040G-JI for guix-patches@gnu.org; Wed, 04 Oct 2023 11:38:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qo3xl-0000Yo-SH for guix-patches@gnu.org; Wed, 04 Oct 2023 11:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66344] [PATCH] system: Modify bash skeleton to colorize 'ip' output. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Oct 2023 15:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66344 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66344@debbugs.gnu.org Cc: Bruno Victal X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16964339362139 (code B ref -1); Wed, 04 Oct 2023 15:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2023 15:38:56 +0000 Received: from localhost ([127.0.0.1]:45134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo3xf-0000YQ-NV for submit@debbugs.gnu.org; Wed, 04 Oct 2023 11:38:55 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo3xe-0000YD-NY for submit@debbugs.gnu.org; Wed, 04 Oct 2023 11:38:55 -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 1qo3xC-000072-Rj for guix-patches@gnu.org; Wed, 04 Oct 2023 11:38:31 -0400 Received: from smtpm2.myservices.hosting ([185.26.105.233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qo3xB-0003y8-8f for guix-patches@gnu.org; Wed, 04 Oct 2023 11:38:26 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm2.myservices.hosting (Postfix) with ESMTP id 59A5A20E5F for ; Wed, 4 Oct 2023 17:38:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id D704B80097; Wed, 4 Oct 2023 17:38:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nvqeao-9i9pP; Wed, 4 Oct 2023 17:38:15 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 5F95880095; Wed, 4 Oct 2023 17:38:15 +0200 (CEST) From: Bruno Victal Date: Wed, 4 Oct 2023 16:36:01 +0100 Message-ID: <129f80d93efa5f78a3007f9837ace2ea78726e68.1696433761.git.mirai@makinata.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=185.26.105.233; envelope-from=mirai@makinata.eu; helo=smtpm2.myservices.hosting 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/system/shadow.scm (%default-bashrc): Add an alias for 'ip' that enables output colorization. --- It turns out the 'ip' command supports colorized output which makes its output much more pleasant to the eyes. gnu/system/shadow.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) base-commit: 264baefa881cf53d451bdfee3dcd6b2ade796d26 diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 9ca1895ded..47f19551b6 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -144,7 +144,8 @@ (define %default-bashrc alias ls='ls -p --color=auto' alias ll='ls -l' -alias grep='grep --color=auto'\n")) +alias grep='grep --color=auto' +alias ip='ip -color=auto'\n")) (define (default-skeletons) "Return the default skeleton files for /etc/skel. These files are copied by