File: colors.bash

package info (click to toggle)
libapp-cmd-perl 0.339-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 556 kB
  • sloc: perl: 1,919; makefile: 8; sh: 3
file content (9 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# colors -- complete to the colors of the rainbow
#
# Source this file alongside the palette bash completion script.  The
# fn:colors completion spec in palette's opt_spec causes the generated
# completion function to call colors() with the current word as $1.

colors() {
    compgen -W "red orange yellow green blue indigo violet" -- "$1"
}