Extend diskutil eject to suggest volumes

Extend `diskutil eject` completion to also suggest mounted volumes.

Fixes #10573
This commit is contained in:
Schlomo Schapiro 2024-06-18 11:36:49 +02:00 committed by Peter Ammon
parent 27c7578760
commit f0c8f7406c
No known key found for this signature in database

View File

@ -52,8 +52,8 @@ complete -f -c diskutil -n __fish_use_subcommand -a umountDisk -d 'Unmount an en
complete -f -c diskutil -n '__fish_diskutil_using_not_subcommand umountDisk' -a '(__fish_diskutil_mounted_volumes)'
# eject
complete -f -c diskutil -n __fish_use_subcommand -a eject -d 'Eject a disk'
complete -f -c diskutil -n '__fish_diskutil_using_not_subcommand eject' -a '(__fish_diskutil_devices)'
complete -f -c diskutil -n __fish_use_subcommand -a eject -d 'Eject a volume or disk'
complete -f -c diskutil -n '__fish_diskutil_using_not_subcommand eject' -a '(__fish_diskutil_mounted_volumes) (__fish_diskutil_devices)'
# mount
complete -f -c diskutil -n __fish_use_subcommand -a mount -d 'Mount a single volume'