From bee1fa9e0d6a920795df5015c33d32d33a45bb05 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 11 Dec 2001 15:46:21 +0000 Subject: 16320: factor out file system completion to new function --- Completion/Unix/Type/_file_systems | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Completion/Unix/Type/_file_systems (limited to 'Completion/Unix/Type/_file_systems') diff --git a/Completion/Unix/Type/_file_systems b/Completion/Unix/Type/_file_systems new file mode 100644 index 000000000..b977ac79c --- /dev/null +++ b/Completion/Unix/Type/_file_systems @@ -0,0 +1,37 @@ +#autoload + +local fss + +case $OSTYPE in + aix*) fss=( jfs nfs cdrfs ) ;; + irix*) fss=( efs proc fd nfs iso9660 dos hfs cachefs xfs ) ;; + linux*) + typeset -aU fss + fss=( adfs bfs cramfs ext2 ext3 hfs hpfs iso9660 minix ntfs qnx4 + reiserfs romfs swap udf ufs vxfs xfs xiafs ) + [[ -r /proc/filesystems ]] && + fss=( $fss ${$(