From 0aed139691b60ae980a12de96bb93e1d30bdb0ba Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Aug 2017 23:52:05 +0100 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +} -- 2.47.3