diff options
Diffstat (limited to 'completions/mount.linux')
-rw-r--r-- | completions/mount.linux | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/completions/mount.linux b/completions/mount.linux index 20a3d6a0..ddb9180e 100644 --- a/completions/mount.linux +++ b/completions/mount.linux @@ -15,11 +15,11 @@ _mount() cur="${cur##*,}" split=true fi - COMPREPLY=( $(compgen -W 'auto adfs affs autofs btrfs cifs coda - cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs - iso9660 jffs2 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc - qnx4 ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf - ufs umsdos usbfs vfat xfs' -- "$cur") ) + COMPREPLY=( $( compgen -W 'auto adfs affs autofs btrfs cifs coda + cramfs davfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus + hpfs iso9660 jffs2 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g + proc qnx4 ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs + udf ufs umsdos usbfs vfat xfs' -- "$cur" ) ) _fstypes $split && COMPREPLY=( ${COMPREPLY[@]/#/$prev,} ) return @@ -72,15 +72,14 @@ _mount() # no completion if $cur is opt=smth [[ "$cur" == *=* ]] && return # mount options - COMPREPLY=( $(compgen -W 'loop async {,no}atime {,no}auto + COMPREPLY=( $(compgen -W 'loop {,a}sync {,no}atime {,no}auto {,fs,def,root}context= defaults {,no}dev {,no}diratime dirsync {,no}exec group {,no}iversion {,no}mand _netdev nofail {,no}relatime {,no}strictatime {,no}suid owner remount ro rw - sync {,no}user users' -- "$cur") ) + {,no}user users' -- "$cur") ) case "$fstype" in adfs|auto) - COMPREPLY+=( $(compgen -W 'uid= gid= {own,oth}mask=' -- \ - "$cur") ) + COMPREPLY+=( $(compgen -W '{u,g}id= {own,oth}mask=' -- "$cur") ) ;;& affs|auto) COMPREPLY+=( $(compgen -W '{u,g}id= set{u,g}id= mode= protect @@ -97,10 +96,14 @@ _mount() cifs|auto) COMPREPLY+=( $(compgen -W 'user= password= credentials= {u,g}id= force{u,g}id port= servern= netbiosname= {file,dir}_mode= - ip= domain= guest iocharset ro rw {,no}setuids {,no,dyn}perm + ip= domain= guest iocharset {,no}setuids {,no,dyn}perm directio {,no}mapchars {,no}intr hard soft noacl nocase sec= nobrl sfu {,no}serverino nounix nouser_xattr {r,w}size= - rwpidforward backup{u,g}id' -- "$cur") ) + rwpidforward backup{u,g}id cache=' -- "$cur") ) + ;;& + davfs|auto) + COMPREPLY+=( $(compgen -W 'conf= {file,dir}_mode= {u,g}id= + username=' -- "$cur") ) ;;& ext[2-4]|auto) COMPREPLY+=( $(compgen -W '{,no}acl bsddf minixdf check= debug @@ -117,7 +120,7 @@ _mount() nobarrier inode_readahead= stripe= {,no}delalloc abort {max,min}_batch_time= journal_ioprio= {,no}auto_da_alloc {,no}discard nouid32 resize {,no}block_validity - dioread_{,no}lock i_version' -- "$cur") ) + dioread_{,no}lock max_dir_size_kb= i_version' -- "$cur") ) ;;& msdos|umsdos|vfat|auto) COMPREPLY+=( $(compgen -W 'blocksize= {u,g}id= {u,d,f}mask= @@ -135,16 +138,31 @@ _mount() iocharset= utf8' -- "$cur") ) ;;& jffs2|auto) - COMPREPLY+=( $(compgen -W 'compr=' -- "$cur") ) + COMPREPLY+=( $(compgen -W 'compr= rp_size=' -- "$cur") ) ;;& jfs|auto) COMPREPLY+=( $(compgen -W 'iocharset= resize= {,no}integrity errors= {,no,usr,grp}quota' -- "$cur") ) ;;& + nfs|nfs4|auto) + COMPREPLY+=( $(compgen -W 'soft hard timeo= retrans= {r,w}size= + {,no}ac acreg{min,max}= acdir{min,max}= actimeo= bg fg + retry= sec= {,no}sharecache {,no}resvport lookupcache= + proto= port= {,no}intr {,no}cto {,nfs}vers= ' -- "$cur") ) + ;;& + nfs|auto) + COMPREPLY+=( $(compgen -W 'udp tcp rdma mount{port,proto,host}= + mountvers= namlen={,no}lock {,no}acl {,no}rdirplus + {,no}fsc' -- "$cur") ) + ;;& + nfs4|auto) + COMPREPLY+=( $(compgen -W 'clientaddr= {,no}migration' \ + -- "$cur") ) + ;;& ntfs-3g) COMPREPLY+=( $(compgen -W '{u,g}id= {u,f,d}mask= usermapping= - permissions inherit ro locale= force {,no}recover - ignore_case remove_hiberfile {,no,rel}atime show_sys_files + permissions inherit locale= force {,no}recover + ignore_case remove_hiberfile show_sys_files hide_{hid,dot}_files windows_names allow_other max_read= silent no_def_opts streams_interface= user_xattr efs_raw {,no}compression debug no_detach' -- "$cur") ) @@ -172,11 +190,11 @@ _mount() ;;& xfs|auto) COMPREPLY+=( $(compgen -W 'allocsize= {,no}attr2 barrier dmapi - {,no}grpid {bsd,sysv}groups ihashsize= {,no}ikeep inode64 - {,no}largeio logbufs= logbsize= logdev= rtdev= mtpt= noalign - noatime norecovery nouuid osyncisosync {u,g,p}qnoenforce - {,u,usr,g,grp,p,prj}quota sunit= swidth= swalloc' \ - -- "$cur") ) + {,no}grpid {bsd,sysv}groups ihashsize= {,no}ikeep + inode{32,64} {,no}largeio logbufs= logbsize= logdev= + rtdev= mtpt= noalign norecovery nouuid osyncisosync + {u,g,p}qnoenforce {,u,usr,g,grp,p,prj}quota sunit= swidth= + swalloc' -- "$cur") ) ;;& esac # COMP_WORDBREAKS is a real pain in the ass |