File: unp.bash-completion

package info (click to toggle)
unp 2.0~pre9
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 132 kB
  • sloc: perl: 515; makefile: 36; sh: 10
file content (19 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# bash completion for unp

_unp()
{
    local cur
    COMPREPLY=()
    cur="$(_get_cword)"
    case "$cur" in
        -*)
        COMPREPLY=( $( compgen -W '-u' -- "$cur" ) )
        ;;
        *)
            _filedir '@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi|Z|gz|tgz|Gz|dz|lha|LHa|lhz|deb|ar|bz2|tbz2|rpm|shar|rar|arj|cab|ace|tnef|uu|mime|hqx|sea|zoo|pmd|cpio|afio|lzop|tar|lz|xz|lzma|7z)'
        ;;
    esac
    return 0
} &&
complete -F _unp $filenames unp