unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Bruno Victal <mirai@makinata.eu>
To: 66344@debbugs.gnu.org
Cc: Bruno Victal <mirai@makinata.eu>
Subject: [bug#66344] [PATCH] system: Modify bash skeleton to colorize 'ip' output.
Date: Wed,  4 Oct 2023 16:36:01 +0100	[thread overview]
Message-ID: <129f80d93efa5f78a3007f9837ace2ea78726e68.1696433761.git.mirai@makinata.eu> (raw)

* 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(-)

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

base-commit: 264baefa881cf53d451bdfee3dcd6b2ade796d26
-- 
2.41.0





             reply	other threads:[~2023-10-04 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-04 15:36 Bruno Victal [this message]
2023-10-06  9:32 ` bug#66344: [PATCH] system: Modify bash skeleton to colorize 'ip' output Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=129f80d93efa5f78a3007f9837ace2ea78726e68.1696433761.git.mirai@makinata.eu \
    --to=mirai@makinata.eu \
    --cc=66344@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).