diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-12-30 19:02:03 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-12-30 19:02:03 +0100 |
commit | 3a249bb5495a3366cb98a5cadaf22a141f6eed99 (patch) | |
tree | 3a31b43a1df41ad901a59ba043ab86d19b9ae7da /share/functions/__fish_print_filesystems.fish | |
parent | 1a12071a48a4ead52c8749118aef2a1016bdc5e5 (diff) |
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.
Diffstat (limited to 'share/functions/__fish_print_filesystems.fish')
-rw-r--r-- | share/functions/__fish_print_filesystems.fish | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/functions/__fish_print_filesystems.fish b/share/functions/__fish_print_filesystems.fish index d7222f83..c08a6da8 100644 --- a/share/functions/__fish_print_filesystems.fish +++ b/share/functions/__fish_print_filesystems.fish @@ -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 - |