File: bash

package info (click to toggle)
terminator 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,916 kB
  • sloc: python: 11,390; sh: 26; makefile: 15
file content (16 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# bash completion for terminator                           -*- shell-script -*-

_terminator()
{
    local cur prev words cword
    _init_completion || return

    # TODO implement completion for --profile and --layout

    COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' |
        command sed -n -e 's/^ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\
    -- "$cur"))
} &&
    complete -F _terminator terminator

# ex: filetype=sh