summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mount
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
commit26e09889646be3ea65b4a3dfeda26213e4bb6a27 (patch)
tree4f3c73a9416bf47ad7e125383d23cf42879e38d7 /Completion/Unix/Command/_mount
parent841bce705a58b04220b1f257abcc00ae71cbdbdc (diff)
parent001cba48ce3b964cf01fb3e2af54b20eacbc9bf5 (diff)
downloadzsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.tar.gz
zsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_mount')
-rw-r--r--Completion/Unix/Command/_mount14
1 files changed, 9 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index 301b9e58e..bf75aa118 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -40,12 +40,13 @@ fi
# are below these table.
local curcontext="$curcontext" state line expl suf ret=1
-local args deffs=iso9660 tmp typeops=-t _nfs_access _fs_nfs _nfs_ufs \
+local deffs=iso9660 tmp typeops=-t _nfs_access _fs_nfs _nfs_ufs \
_fs_ufs _fs_efs _fs_cd9660 _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs \
_fs_hsfs _fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos \
_fs_msdosfs _fs_umsdos _fs_vfat _fs_hpfs _fs_ntfs _fs_reiserfs _fs_smbfs \
_fs_xfs _fs_std _fs_devfs _fs_fdesc _fs_kernfs _fs_linprocfs _fs_linsysfs \
_fs_procfs _fs_btrfs _fs_ext4
+local -a args
typeset -A opt_args
@@ -333,9 +334,9 @@ if (( ! $+_fs_any )); then
'keybits[set number of bits in encryption key]:key size:(64 128 160 192 256)'
'offset[specify data start for loopback mount]:offset (bytes)'
'(loud)silent' '(silent)loud'
- '(fscontext defcontext)context:context'
- '(context)'{fscontext,defcontext}':context'
- 'rootcontext:context'
+ '(fscontext defcontext)context:context:_selinux_contexts -a file_type'
+ '(context)'{fscontext,defcontext}':context:_selinux_contexts -a file_type'
+ 'rootcontext:context:_selinux_contexts -a file_type'
)
_fs_adfs=(
'uid[set owner of root]:user ID'
@@ -735,8 +736,11 @@ if [[ "$service" = mount ]]; then
deffs=hsfs
typeops=-F
;;
+ darwin*)
+ args=( '-k[follow no symlinks in the provided mount-on directory]' )
+ ;&
freebsd*|dragonfly*|darwin*)
- args=( -s
+ args=( -s $args
'(:)-a[mount all filesystems in fstab]'
'-d[cause everything to be done except for the actual system call]'
'-f[forced mount]'