PageRenderTime 43ms CodeModel.GetById 39ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete -o filenames/mkisofs

http://github.com/brinkman83/bashrc
#! | 74 lines | 65 code | 9 blank | 0 comment | 0 complexity | 4262fda170420d97afb54c4d5fc94324 MD5 | raw file
 1# mkisofs(8) completion
 2
 3
 4comp_include _filedir _get_cword _gids _uids
 5
 6
 7_mkisofs()
 8{
 9    local cur prev
10
11    COMPREPLY=()
12    cur=`_get_cword`
13    prev=${COMP_WORDS[COMP_CWORD-1]}
14
15    case "$prev" in
16        -@(o|abstract|biblio|check-session|copyright|log-file|root-info|prep-boot|*-list))
17            _filedir
18            return 0
19            ;;
20        -*-charset)
21            COMPREPLY=( $( mkisofs -input-charset help 2>&1 | \
22                    tail +3 | grep "^$cur") )
23            return 0
24            ;;
25        -uid)
26            _uids
27            return 0
28            ;;
29        -gid)
30            _gids
31            return 0
32            ;;
33    esac
34
35    if [[ "$cur" == -* ]]; then
36        COMPREPLY=( $( compgen -W '-abstract -A -allow-lowercase \
37                -allow-multidot -biblio -cache-inodes \
38                -no-cache-inodes -b -eltorito-alt-boot -B -G \
39                -hard-disk-boot -no-emul-boot -no-boot \
40                -boot-load-seg -boot-load-size \
41                -boot-info-table -C -c -check-oldname \
42                -check-session -copyright -d -D -dir-mode \
43                -dvd-video -f -file-mode -gid -gui \
44                -graft-points -hide -hide-list -hidden \
45                -hidden-list -hide-joliet -hide-joliet-list \
46                -hide-joliet-trans-tbl -hide-rr-moved \
47                -input-charset -output-charset -iso-level -J \
48                -joliet-long -jcharset -l -L -log-file -m \
49                -exclude-list -max-iso9660-filenames -M -N \
50                -new-dir-mode -nobak -no-bak -force-rr -no-rr \
51                -no-split-symlink-components \
52                -no-split-symlink-fields -o -pad -no-pad \
53                -path-list -P -p -print-size -quiet -R -r \
54                -relaxed-filenames -sort -split-output \
55                -stream-media-size -stream-file-name -sysid -T\
56                -table-name -ucs-level -udf -uid \
57                -use-fileversion -U -no-iso-translate -V \
58                -volset -volset-size -volset-seqno -v -x -z \
59                -hfs -apple -map -magic -hfs-creator \
60                -hfs-type -probe -no-desktop -mac-name \
61                -boot-hfs-file -part -auto -cluster-size \
62                -hide-hfs -hide-hfs-list -hfs-volid \
63                -icon-position -root-info -prep-boot \
64                -input-hfs-charset -output-hfs-charset \
65                -hfs-unlock -hfs-bless -hfs-parms --cap \
66                --netatalk --double --ethershare --ushare \
67                --exchange --sgi --xinet --macbin --single \
68                --dave --sfm --osx-double --osx-hfs' -- $cur ))
69    else
70        _filedir
71    fi
72} # _mkisofs()
73
74