~ubuntu-branches/ubuntu/trusty/bash-completion/trusty-updates

« back to all changes in this revision

Viewing changes to completions/qemu

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-07-23 16:07:59 UTC
  • mfrom: (5.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120723160759-lt9vn33dl3nak9l0
Tags: 1:2.0-1ubuntu1
* debian/maintscript, debian/postinst:
  - clean etc conffiles on upgrade since completion files are in /usr
    with the new version
* Resync with Debian, remaining diff
  * debian/patches/disable-avahi-browse.diff: Disable avahi-browse since
    it scales poorly in the current form: refresh patch
  * patches/101_bash_completion.oga_ogv.patch: Increase support for other
    OGG formats including .oga, .ogx, etc. (LP: #311525)
  * patches/103_colormake.patch: Add support for colormake to the make
    completion rules. (LP: #743208)
* Dropped changes:
  * Add conffile upgrade handling for a run of conffiles that were dropped
    since lucid: lucid upgrades are only supported to precise.
* Those fixes are in the new version
  * debian/patches/apt-get-changelog.patch:
  * Drop whitelists if they fail to produce any results:
  * patches/apt-get-download.patch: Add download as an apt-get
    sub-command (LP: #720541)
  * patches/102_manpager.patch: Override MANPAGER when generating perldoc
    completions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# bash completion for qemu
 
1
# bash completion for qemu                                 -*- shell-script -*-
2
2
 
3
 
have qemu &&
4
3
_qemu()
5
4
{
6
 
    local cur prev
7
 
 
8
 
    COMPREPLY=()
9
 
    _get_comp_words_by_ref cur prev
 
5
    local cur prev words cword
 
6
    _init_completion || return
10
7
 
11
8
    case $prev in
12
9
        -fd[ab]|-hd[abcd]|-cdrom|-option-rom|-kernel|-initrd|-bootp|-pidfile| \
103
100
 
104
101
 
105
102
    if [[ "$cur" == -* ]]; then
106
 
        COMPREPLY=( $( compgen -W '-M -fda -fdb -hda -hdb -hdc -hdd \
107
 
            -cdrom -boot -snapshot -no-fd-bootchk -m -smp -nographic -vnc \
108
 
            -k -audio-help -soundhw -localtime -full-screen -pidfile \
109
 
            -daemonize -win2k-hack -option-rom -usb -usbdevice -net -tftp \
110
 
            -smb -redir -kernel -append -initrd -serial -parallel -monitor \
111
 
            -s -p -S -d -hdachs -L -std-vga -no-acpi -no-reboot -loadvm \
112
 
            -semihosting -cpu -bt -vga -drive -startdate -name -curses \
113
 
            -no-frame -no-quit -bootp -echr -no-shutdown -icount -g \
114
 
            -prom-env -help -version -numa -mtdblock -sd -pflash \
115
 
            -device -uuid -alt-grab -sdl -portrait -rtc-td-hack -no-hpet \
116
 
            -balloon -acpitable -smbios -singlestep -gdb -hdachs -bios \
117
 
            -kernel-kqemu -enable-kqemu -enable-kvm -clock -watchdog \
118
 
            -watchdog-action -virtioconsole -show-cursor -tb-size -incoming \
119
 
            -chroot -runas' -- "$cur" ) )
 
103
        COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help ) -fd{a,b}
 
104
            -hd{a..d}' -- "$cur" ) )
120
105
    else
121
106
        _filedir
122
107
    fi
123
108
} &&
124
109
complete -F _qemu qemu
125
110
 
126
 
# Local variables:
127
 
# mode: shell-script
128
 
# sh-basic-offset: 4
129
 
# sh-indent-comment: t
130
 
# indent-tabs-mode: nil
131
 
# End:
132
111
# ex: ts=4 sw=4 et filetype=sh