Initial commit
This commit is contained in:
13
bash/colors.sh
Normal file
13
bash/colors.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
label="localhost"
|
||||
bold=1
|
||||
|
||||
prompt_part() { printf "\e[$2;38;5;$3;48;5;${4}m $1 \e[;38;5;$4${5+;48;5;$5}m"; }
|
||||
|
||||
for color in {0..255}; do
|
||||
printf "\n"
|
||||
prompt_part "$label" $bold 231 $color 240
|
||||
prompt_part "~" 0 252 240
|
||||
printf "\e[m $color\n"
|
||||
done
|
||||
Reference in New Issue
Block a user