From c8a2d98498c5efde1d7c0c67ce8311cb90e29ce2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 3 Mar 2021 09:44:06 +0100 Subject: [PATCH] shell: aliases: enable colors for `ip` --- shell/shell/aliases.in | 2 +- shell/shell/env | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/shell/aliases.in b/shell/shell/aliases.in index 3d339c2..c78823d 100644 --- a/shell/shell/aliases.in +++ b/shell/shell/aliases.in @@ -139,6 +139,6 @@ if test "`id -u`" -eq 0; then fi # Use short `ip` output per default. -alias ip='ip -brief' +alias ip='ip -brief -color=auto' # vim: ft=sh diff --git a/shell/shell/env b/shell/shell/env index 973e54f..74715a0 100644 --- a/shell/shell/env +++ b/shell/shell/env @@ -164,4 +164,9 @@ export GOPROXY GOSUMDB=off export GOSUMDB +# Tell `ip -color` to use colors suitable for a dark terminal. Not sure if +# this variable is also used by other programs. +COLORFGBG=';0' +export COLORFGBG + # vim: ft=sh -- 2.43.2