aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-07-09 10:13:24 +0200
committerDuncaen <mail@duncano.de>2015-07-09 10:13:30 +0200
commitd432b08cd6a0c2f35b3e19b55ed4f2a197027b82 (patch)
tree0248e9246ba5b63c08429dfc1cd5afce60c95a5f
parenta4216705e0d13e50876700c1d4856f8dbf34f411 (diff)
downloaddotfiles-d432b08cd6a0c2f35b3e19b55ed4f2a197027b82.tar.gz
mksh add colors function
-rwxr-xr-xmksh.d/00-misc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/mksh.d/00-misc.sh b/mksh.d/00-misc.sh
index 7ddccfd..ce666fb 100755
--- a/mksh.d/00-misc.sh
+++ b/mksh.d/00-misc.sh
@@ -3,3 +3,15 @@ alias wanip='curl ipinfo.io/ip'
function psgrep {
ps u `pgrep "$1"`
}
+
+function colors {
+ for x in 0 1 4 5 7 8; do
+ for i in $(seq 30 37); do
+ for a in $(seq 40 47); do
+ echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "
+ done
+ echo ""
+ done
+ done
+ echo ""
+}