]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 25 Oct 2017 22:57:54 +0000 (23:57 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 25 Oct 2017 22:57:54 +0000 (23:57 +0100)
etc/profile.d/functions

index 742a02f3dfb8cadb0823e45251ac225087fbc372..0f2d427f81fef18bf9cc88b1ec4a33d9b12fccbd 100644 (file)
@@ -897,6 +897,6 @@ lscolors() {
   while [ $color -lt 245 ]; do
     echo -ne "$color: \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m"
     printf '\t%s\n' "\\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m"
-    ((color++));
+    color=$(($color+1))
   done  
 }