File: tlp-rdw.bash_completion

package info (click to toggle)
tlp 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: sh: 15,870; python: 1,194; makefile: 367; perl: 314; xml: 52
file content (16 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# bash completion for tlp-rdw
# Copyright (c) 2025 Thomas Koch <linrunner at gmx.net> and others.
# SPDX-License-Identifier: GPL-2.0-or-later

_tlp_rdw() {
    local cur prev words cword opts
    _init_completion || return

    opts="enable disable --version"

    if [ $cword -eq 1 ]; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi
} &&
complete -F _tlp_rdw tlp-rdw