File: unp

package info (click to toggle)
unp 2.0~pre7%2Bnmu1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 132 kB
  • ctags: 23
  • sloc: perl: 489; makefile: 58; sh: 7
file content (20 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# bash completion for unp

have 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