From: Simon Ruderich Date: Wed, 3 Mar 2021 08:44:06 +0000 (+0100) Subject: shell: aliases: enable colors for `ip` X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c8a2d98498c5efde1d7c0c67ce8311cb90e29ce2;p=config%2Fdotfiles.git shell: aliases: enable colors for `ip` --- 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