]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorroot <sys@15gifts.com>
Tue, 15 Aug 2017 22:52:05 +0000 (23:52 +0100)
committerroot <sys@15gifts.com>
Tue, 15 Aug 2017 22:52:05 +0000 (23:52 +0100)
etc/profile.d/functions

index 96e15901482038af24e490957155ac45405dfd5f..a35e86c0cb6448c7983e0e78ec2ca88ff36c44a1 100644 (file)
@@ -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  
+}