-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
bugSomething isn't workingSomething isn't workingdarwinfundFundable with polar.shFundable with polar.sh
Description
Current Behavior
- Completing
mountandumountuseslsblkand/proc/mountsto find devices. Both ways are Linux only and fail on BSDs, including MacOS as BSD-derived OS. - Completing
mountandumountpresents completions forLABEL=,ID=etc, which are also Linux only.
Expected Behavior
Another way to find mounted devices (maybe just plain mount?) and devices to mount (diskutil list -plist?) is used, wrong completions are removed.
Steps To Reproduce
- On BSD/Darwin
- Type
umount <tab> - The following will be displayed (annotated):
~ > umount <tab>
# all local directories, regardless of them being (parent to) a mount point or not
Applications/
[...]
# errors
ERR (lsblk resolves to executable in current directory (./lsblk))
ERR1 (open /proc/mounts: no such file or directory)
# wrong completions
ID= (specifies device by udev hardware ID)
LABEL= (specifies device by filesystem label)
PARTLABEL= (specifies device by partition label)
PARTUUID= (specifies device by partition UUID)
UUID= (specifies device by filesystem UUID)Version
carapace-bin 1.5.4
OS
- Darwin
- Linux
- Termux
- Windows
Shell
- Bash
- Elvish
- Fish
- Nushell
- Oil
- Powershell
- Xonsh
- Zsh
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdarwinfundFundable with polar.shFundable with polar.sh