1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 09:07:12 -07:00

add argument checking to colors

This commit is contained in:
Connor Olding 2021-07-30 12:36:50 -07:00
parent 936bb919ed
commit aed65ec04f

View File

@ -4,6 +4,7 @@
# NO_DASH
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}
}