Blame | Last modification | View Log | RSS feed
# Check for bash[ -z "$BASH_VERSION" ] && return####################################################################################################__udisks() {local IFS=$'\n'local cur="${COMP_WORDS[COMP_CWORD]}"if [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--show-info" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--inhibit-polling" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--mount" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--unmount" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--detach" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--ata-smart-refresh" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--ata-smart-simulate" ] ; then_filedir || return 0elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--set-spindown" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elif [ "${COMP_WORDS[$(($COMP_CWORD - 1))]}" = "--poll-for-media" ] ; thenCOMPREPLY=($(compgen -W "$(udisks --enumerate-device-files)" -- $cur))elseCOMPREPLY=($(IFS=: compgen -W "--dump:--inhibit-polling:--inhibit-all-polling:--enumerate:--enumerate-device-files:--monitor:--monitor-detail:--show-info:--help:--mount:--mount-fstype:--mount-options:--unmount:--unmount-options:--detach:--detach-options:--ata-smart-refresh:--ata-smart-wakeup:--ata-smart-simulate:--set-spindown:--set-spindown-all:--spindown-timeout:--poll-for-media" -- $cur))fi}####################################################################################################complete -o filenames -F __udisks udisks