From: root Date: Tue, 15 Aug 2017 22:52:05 +0000 (+0100) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0aed139691b60ae980a12de96bb93e1d30bdb0ba;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 96e15901..a35e86c0 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -886,3 +886,12 @@ uid_from_to() { read eval "$cmd" } + +colorsls() { + local color=16 + + while [ $color -lt 245 ]; do + echo -e "$color: \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m" + ((color++)); + done +}