mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
343cafef34
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
30 lines
2 KiB
Fish
30 lines
2 KiB
Fish
|
|
|
|
# A list of all known filesystem types, used by various completions,
|
|
# including mount and df
|
|
|
|
# Completions for mount
|
|
complete -x -c mount -a '(cat /etc/fstab|sed -e "s/^\([^ \t]*\)[ \t]*\([^ \t]*\).*/\1\n\2/"|grep "^/")' -d (_ 'Mount point')
|
|
complete -c mount -s V -d (_ 'Display version and exit')
|
|
complete -c mount -s h -d (_ 'Display help and exit')
|
|
complete -c mount -s v -d (_ 'Verbose mode')
|
|
complete -c mount -s a -d (_ 'Mount filesystems in fstab')
|
|
complete -c mount -s F -d (_ 'Fork process for each mount')
|
|
complete -c mount -s f -d (_ 'Fake mounting')
|
|
complete -c mount -s l -d (_ 'Add label to output')
|
|
complete -c mount -s n -d (_ 'Do not write mtab')
|
|
complete -c mount -s s -d (_ 'Tolerate sloppy mount options')
|
|
complete -c mount -s r -d (_ 'Read only')
|
|
complete -c mount -s w -d (_ 'Read/Write mode')
|
|
complete -x -c mount -s L -d (_ 'Mount partition with specified label')
|
|
complete -x -c mount -s U -d (_ 'Mount partition with specified UID')
|
|
complete -c mount -s O -x -d (_ 'Exclude filesystems')
|
|
complete -c mount -l bind -f -d (_ 'Remount a subtree to a second position')
|
|
complete -c mount -l move -f -d (_ 'Move a subtree to a new position')
|
|
complete -c mount -x -s t -d (_ 'Filesystem') -a "(__fish_print_filesystems)"
|
|
|
|
complete -c mount -x -s o -d (_ 'Mount option') -a '(__fish_append , $__fish_mount_opts)'
|
|
|
|
set -g __fish_mount_opts async\tUse\ asynchronous\ I/O atime\tUpdate\ time\ on\ each\ access auto\tMounted\ with\ -a defaults\tUse\ default\ options dev\tInterpret\ character/block\ special\ devices exec\tPermit\ executables _netdev\tFilesystem\ uses\ network noatime\tDo\ not\ update\ time\ on\ each\ access noauto\tNot\ mounted\ by\ -a nodev\tDo\ not\ interpret\ character/block\ special\ devices noexec\tDo\ not\ permit\ executables nosuid\tIgnore\ suid\ bits nouser\tOnly\ root\ may\ mount remount\tRemount\ read-only\ filesystem ro\tMount\ read-only rw\tMount\ read-write suid\tAllow\ suid\ bits sync\tUse\ synchronous\ I/O dirsync\tUse\ synchronous\ directory\ operations user\tAny\ user\ may\ mount users\tAny\ user\ may\ mount\ and\ unmount
|
|
|
|
|