mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 04:58:57 +00:00
Include mount helpers in filesystem completion
Probably not a thing on OSX, but this should print nothing then. On linux, it helps detect e.g. ntfs-3g.
This commit is contained in:
parent
1a12071a48
commit
3a249bb549
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ function __fish_print_filesystems -d "Print a list of all known filesystem types
|
|||
set -l fs adfs affs autofs coda coherent cramfs devpts efs ext ext2 ext3
|
||||
set fs $fs hfs hpfs iso9660 jfs minix msdos ncpfs nfs ntfs proc qnx4 ramfs
|
||||
set fs $fs reiserfs romfs smbfs sysv tmpfs udf ufs umsdos vfat xenix xfs xiafs
|
||||
printf "%s\n" $fs
|
||||
# Mount has helper binaries to mount filesystems
|
||||
# These are called mount.* and are placed somewhere in $PATH
|
||||
printf "%s\n" $fs (string replace -ra ".*/mount." "" -- $PATH/mount.*)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue