From ad6ea1691e175a1a8de5dfd75be308eb4717861c Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 12 Feb 2017 18:13:14 -0700 Subject: [PATCH] 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 --- share/functions/__fish_print_filesystems.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/__fish_print_filesystems.fish b/share/functions/__fish_print_filesystems.fish index ab6c4c767..b14be36bc 100644 --- a/share/functions/__fish_print_filesystems.fish +++ b/share/functions/__fish_print_filesystems.fish @@ -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