mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -07:00
add argument checking to colors
This commit is contained in:
parent
936bb919ed
commit
aed65ec04f
|
@ -4,6 +4,7 @@
|
||||||
# NO_DASH
|
# NO_DASH
|
||||||
|
|
||||||
colors() {
|
colors() {
|
||||||
|
[ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; }
|
||||||
printf "\e[%dm$(printf " \e[%dm mV \e[40m" {4,10}{0..7})\e[0m\n" {3,9}{0..7}
|
printf "\e[%dm$(printf " \e[%dm mV \e[40m" {4,10}{0..7})\e[0m\n" {3,9}{0..7}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user