mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Fix "mount -t" completions on non-Linux OSes
AFAICT Linux alone uses the "mount.XXX" convention for mount helpers. Illumos, Irix, HPUX, OSX, and the BSDs all use "mount_XXX". Fixes issue #3841
This commit is contained in:
parent
2ea2a4c831
commit
ad6ea1691e
1 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,6 @@ function __fish_print_filesystems -d "Print a list of all known filesystem types
|
|||
set fs $fs reiserfs romfs smbfs sysv tmpfs udf ufs umsdos vfat xenix xfs xiafs
|
||||
# Mount has helper binaries to mount filesystems
|
||||
# These are called mount.* and are placed somewhere in $PATH
|
||||
set -l mountfs $PATH/mount.*
|
||||
printf '%s\n' $fs (string replace -ra '.*/mount.' '' -- $mountfs)
|
||||
set -l mountfs $PATH/mount.* $PATH/mount_*
|
||||
printf '%s\n' $fs (string replace -ra '.*/mount[._]' '' -- $mountfs)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue