fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
cbea0b937
master
1set -l cmds help info dump status monitor mount unmount unlock lock loop-setup loop-delete power-off smart-simulate 2 3function __fish_print_mounted_blockdevice 4if test -r /proc/mounts 5string match -r"^/[^ ]*" < /proc/mounts 6end 7end 8 9complete -f -c udisksctl -n"__fish_seen_subcommand_from $cmds " -l help -d"Shows help" 10complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a help -d"Shows help" 11complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a info -d"Shows information about an object" 12complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a dump -d"Shows information about all objects" 13complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a status -d"Shows high-level status" 14complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a monitor -d"Monitor changes to objects" 15complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a mount -d"Mount a filesystem" 16complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a unmount -d"Unmount a filesystem" 17complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a unlock -d"Unlock an encrypted device" 18complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a lock -d"Lock an encrypted device" 19complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a loop-setup -d"Set-up a loop device" 20complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a loop-delete -d"Delete a loop device" 21complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a power-off -d"Safely power off a drive" 22complete -f -c udisksctl -n"not __fish_seen_subcommand_from $cmds " -a smart-simulate -d"Set SMART data for a drive" 23 24complete -f -c udisksctl -n"__fish_seen_subcommand_from info" -s p -l object-path -d"Object to get information about" 25complete -c udisksctl -n"__fish_seen_subcommand_from info" -s b -l block-device -d"Block device to get information about" -a"(__fish_complete_blockdevice)" 26complete -f -c udisksctl -n"__fish_seen_subcommand_from info" -s d -l drive -d"Drive to get information about" 27 28complete -x -c udisksctl -n"__fish_seen_subcommand_from mount" -s t -l filesystem-type -d"Filesystem type to use" -a"(__fish_print_filesystems)" 29complete -x -c udisksctl -n"__fish_seen_subcommand_from mount" -s o -l options -d"Mount options" -a'(__fish_complete_mount_opts)' 30 31complete -c udisksctl -n"__fish_seen_subcommand_from unmount" -s f -l force -d"Force/layzy unmount" 32complete -c udisksctl -n"__fish_seen_subcommand_from unmount" -a"(__fish_print_mounted)" -f -d"Mount point" 33complete -c udisksctl -n"__fish_seen_subcommand_from unmount" -s b -l block-device -a"(__fish_print_mounted_blockdevice)" -x -d"Mounted block device" 34 35complete -c udisksctl -n"__fish_seen_subcommand_from loop-setup" -s f -l file -d"File to set-up a loop device for" 36complete -c udisksctl -n"__fish_seen_subcommand_from loop-setup" -s r -l read-only -d"Setup read-only device" 37complete -c udisksctl -n"__fish_seen_subcommand_from loop-setup" -s o -l offset -x -d"Start at <num> bytes into file" 38complete -c udisksctl -n"__fish_seen_subcommand_from loop-setup" -s s -l size -x -d"Limit size to <num> bytes" 39 40complete -c udisksctl -n"__fish_seen_subcommand_from loop-delete" -s p -l object-path -d"Object for loop device to delete" 41complete -c udisksctl -n"__fish_seen_subcommand_from loop-delete" -s b -l block-device -d"Loop device to delete" 42 43complete -c udisksctl -n"__fish_seen_subcommand_from smart-simulate" -s f -l file -d"File with libatasmart blob" 44 45complete -c udisksctl -n"__fish_seen_subcommand_from mount unmount lock unlock loop-setup loop-delete power-off smart-simulate" -l no-user-interaction -d"Do not authenticate the user if needed" 46 47for cmdin mount lock unlock 48complete -r -c udisksctl -n"__fish_seen_subcommand_from $cmd " -s p -l object-path -d"Object to $cmd " 49complete -r -c udisksctl -n"__fish_seen_subcommand_from $cmd " -s b -l block-device -d"Block device to $cmd " -a"(__fish_complete_blockdevice)" 50end 51 52for cmdin power-off smart-simulate 53complete -r -c udisksctl -n"__fish_seen_subcommand_from $cmd " -s p -l object-path -d"Object path for ATA device" 54complete -r -c udisksctl -n"__fish_seen_subcommand_from $cmd " -s b -l block-device -d"Block device for ATA device" -a"(__fish_complete_blockdevice)" 55end