summaryrefslogtreecommitdiff
path: root/.local/bin/bloks
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-10-25 17:55:27 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-10-25 17:55:27 -0400
commit6312ef191a9ab7466ec72bb3aba7138816062c2f (patch)
treef7b267d110190ecad3f3c28aa3b5e8143936e03c /.local/bin/bloks
parent1b23fd869dc468c8469517761c17d4238a8d104f (diff)
Cleanup useless/unused shell scripts
Diffstat (limited to '.local/bin/bloks')
-rwxr-xr-x.local/bin/bloks59
1 files changed, 0 insertions, 59 deletions
diff --git a/.local/bin/bloks b/.local/bin/bloks
deleted file mode 100755
index 3f06d93..0000000
--- a/.local/bin/bloks
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/sh
-
-# ANSI Color -- use these variables to easily have different color
-# and format output. Make sure to output the reset sequence after
-# colors (f = foreground, b = background), and use the 'off'
-# feature for anything you turn on.
-
-initializeANSI()
-{
- esc=""
-
- blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
- yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
- cyanf="${esc}[36m"; whitef="${esc}[37m"
-
- blackb="${esc}[1;30m"; redb="${esc}[1;31m"; greenb="${esc}[1;32m"
- yellowb="${esc}[1;33m" blueb="${esc}[1;34m"; purpleb="${esc}[1;35m"
- cyanb="${esc}[1;36m"; whiteb="${esc}[1;37m"
-
- boldon="${esc}[1m"; boldoff="${esc}[22m"
- italicson="${esc}[3m"; italicsoff="${esc}[23m"
- ulon="${esc}[4m"; uloff="${esc}[24m"
- invon="${esc}[7m"; invoff="${esc}[27m"
-
- reset="${esc}[0m"
-}
-
-# note in this first use that switching colors doesn't require a reset
-# first - the new color overrides the old one.
-
-numbers (){
-
-initializeANSI
-
-cat << EOF
-${blackf}11111111${reset} ${redf}22222222${reset} ${greenf}33333333${reset} ${yellowf}44444444${reset} ${bluef}55555555${reset} ${purplef}66666666${reset} ${cyanf}77777777${reset} ${whitef}88888888${reset}
-${blackb}11111111${reset} ${redb}22222222${reset} ${greenb}33333333${reset} ${yellowb}44444444${reset} ${blueb}55555555${reset} ${purpleb}66666666${reset} ${cyanb}77777777${reset} ${whiteb}88888888${reset}
-EOF
-
-}
-
-blocks (){
-
-initializeANSI
-
-cat << EOF
-${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
-${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
-${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} ${whitef}████${reset}${whiteb}████${reset}
-EOF
-
-}
-
-case $1 in
- b) blocks;;
- n) numbers;;
- a) blocks && numbers;;
- *) blocks && numbers;;
-esac