-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_printc
More file actions
27 lines (23 loc) · 687 Bytes
/
_printc
File metadata and controls
27 lines (23 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#compdef printc
_printc() {
local -a all_opts
all_opts=(
"-b[bold]"
"-i[italic]"
"-u[underline]"
"-k[blink]"
"-l[list built in colors]"
"-h[show help message]"
"-n[suppress newline]"
"-r[suppress closing ANSI code]"
"-R[print only closing ANSI code]"
"-C[built in colors]:custom:(cayenne \
mocha asparagus fern clover moss teal \
ocean midnight eggplant plum maroon maraschino \
tangerine lemon lime spring seafoam turquois \
aqua blueberry grape magenta strawberry salmon \
cantaloupe banana honeydew flora spindrift ice \
sky orchid lavender bubblegum carnation)"
)
_arguments -s "$all_opts[@]"
}