/
usr
/
share
/
zsh
/
4.3.11
/
functions
/
/usr/share/zsh/4.3.11/functions
mkdir
upload
Name
Size
Mode
Actions
add-zsh-hook
1632
0644
edit
dl
rm
age
2033
0644
edit
dl
rm
allopt
770
0644
edit
dl
rm
backward-kill-word-match
593
0644
edit
dl
rm
backward-word-match
450
0644
edit
dl
rm
bashcompinit
4702
0644
edit
dl
rm
calendar
11746
0644
edit
dl
rm
calendar_add
8273
0755
edit
dl
rm
calendar_edit
794
0644
edit
dl
rm
calendar_lockfiles
1629
0644
edit
dl
rm
calendar_parse
6115
0644
edit
dl
rm
calendar_read
1271
0644
edit
dl
rm
calendar_scandate
29150
0644
edit
dl
rm
calendar_show
1029
0644
edit
dl
rm
calendar_showdate
1461
0644
edit
dl
rm
calendar_sort
1930
0644
edit
dl
rm
capitalize-word-match
373
0644
edit
dl
rm
catch
1250
0644
edit
dl
rm
cdr
11510
0644
edit
dl
rm
checkmail
817
0755
edit
dl
rm
chpwd_recent_add
506
0644
edit
dl
rm
chpwd_recent_dirs
1593
0644
edit
dl
rm
chpwd_recent_filehandler
1176
0644
edit
dl
rm
colors
3401
0644
edit
dl
rm
compaudit
4911
0644
edit
dl
rm
compdump
4015
0644
edit
dl
rm
compinit
16088
0644
edit
dl
rm
compinstall
61500
0644
edit
dl
rm
copy-earlier-word
795
0644
edit
dl
rm
cycle-completion-positions
497
0644
edit
dl
rm
define-composed-chars
7947
0644
edit
dl
rm
delete-whole-word-match
1705
0644
edit
dl
rm
down-case-word-match
376
0644
edit
dl
rm
down-line-or-beginning-search
586
0644
edit
dl
rm
edit-command-line
550
0644
edit
dl
rm
forward-word-match
764
0644
edit
dl
rm
getjobs
827
0644
edit
dl
rm
harden
96
0755
edit
dl
rm
history-beginning-search-menu
3483
0644
edit
dl
rm
history-pattern-search
2170
0644
edit
dl
rm
history-search-end
812
0644
edit
dl
rm
incarg
1002
0644
edit
dl
rm
incremental-complete-word
3868
0644
edit
dl
rm
insert-composed-char
5237
0644
edit
dl
rm
insert-files
997
0644
edit
dl
rm
insert-unicode-char
693
0644
edit
dl
rm
is-at-least
1371
0644
edit
dl
rm
keeper
3226
0644
edit
dl
rm
keymap+widget
2663
0644
edit
dl
rm
kill-word-match
591
0644
edit
dl
rm
match-word-context
992
0644
edit
dl
rm
match-words-by-style
9078
0644
edit
dl
rm
mere
2062
0644
edit
dl
rm
modify-current-argument
1948
0644
edit
dl
rm
narrow-to-region
3539
0644
edit
dl
rm
narrow-to-region-invisible
211
0644
edit
dl
rm
nslookup
1126
0644
edit
dl
rm
pick-web-browser
4875
0644
edit
dl
rm
predict-on
4715
0644
edit
dl
rm
promptinit
5810
0644
edit
dl
rm
promptnl
3301
0644
edit
dl
rm
prompt_adam1_setup
1810
0644
edit
dl
rm
prompt_adam2_setup
4090
0644
edit
dl
rm
prompt_bart_setup
6739
0644
edit
dl
rm
prompt_bigfade_setup
1854
0644
edit
dl
rm
prompt_clint_setup
1695
0644
edit
dl
rm
prompt_elite2_setup
1638
0644
edit
dl
rm
prompt_elite_setup
1523
0644
edit
dl
rm
prompt_fade_setup
1810
0644
edit
dl
rm
prompt_fire_setup
1989
0644
edit
dl
rm
prompt_off_setup
121
0644
edit
dl
rm
prompt_oliver_setup
1467
0644
edit
dl
rm
prompt_pws_setup
663
0644
edit
dl
rm
prompt_redhat_setup
273
0644
edit
dl
rm
prompt_special_chars
775
0644
edit
dl
rm
prompt_suse_setup
260
0644
edit
dl
rm
prompt_walters_setup
558
0644
edit
dl
rm
prompt_zefram_setup
509
0644
edit
dl
rm
quote-and-complete-word
1442
0644
edit
dl
rm
read-from-minibuffer
1429
0644
edit
dl
rm
regexp-replace
1039
0644
edit
dl
rm
relative
888
0644
edit
dl
rm
replace-string
651
0644
edit
dl
rm
replace-string-again
1824
0644
edit
dl
rm
run-help
2915
0755
edit
dl
rm
run-help-git
144
0644
edit
dl
rm
run-help-openssl
59
0644
edit
dl
rm
run-help-p4
78
0644
edit
dl
rm
run-help-sudo
56
0644
edit
dl
rm
run-help-svk
42
0644
edit
dl
rm
run-help-svn
42
0644
edit
dl
rm
select-word-style
1901
0644
edit
dl
rm
smart-insert-last-word
4151
0644
edit
dl
rm
split-shell-arguments
1530
0644
edit
dl
rm
sticky-note
4702
0755
edit
dl
rm
tcp_alias
4093
0644
edit
dl
rm
tcp_close
2981
0644
edit
dl
rm
tcp_command
68
0644
edit
dl
rm
tcp_expect
4156
0644
edit
dl
rm
tcp_fd_handler
970
0644
edit
dl
rm
tcp_log
2285
0644
edit
dl
rm
tcp_open
6789
0644
edit
dl
rm
tcp_output
1792
0644
edit
dl
rm
tcp_point
443
0644
edit
dl
rm
tcp_proxy
849
0644
edit
dl
rm
tcp_read
7055
0644
edit
dl
rm
tcp_rename
850
0644
edit
dl
rm
tcp_send
1988
0644
edit
dl
rm
tcp_sess
1039
0644
edit
dl
rm
tcp_shoot
329
0644
edit
dl
rm
tcp_spam
2909
0644
edit
dl
rm
tcp_talk
1472
0644
edit
dl
rm
tcp_wait
459
0644
edit
dl
rm
tetris
5433
0644
edit
dl
rm
throw
1022
0644
edit
dl
rm
transpose-lines
1088
0644
edit
dl
rm
transpose-words-match
1336
0644
edit
dl
rm
up-case-word-match
377
0644
edit
dl
rm
up-line-or-beginning-search
564
0644
edit
dl
rm
url-quote-magic
5737
0644
edit
dl
rm
vcs_info
3272
0644
edit
dl
rm
VCS_INFO_adjust
246
0644
edit
dl
rm
VCS_INFO_bydir_detect
754
0644
edit
dl
rm
VCS_INFO_check_com
322
0644
edit
dl
rm
VCS_INFO_detect_bzr
326
0644
edit
dl
rm
VCS_INFO_detect_cdv
335
0644
edit
dl
rm
VCS_INFO_detect_cvs
325
0644
edit
dl
rm
VCS_INFO_detect_darcs
333
0644
edit
dl
rm
VCS_INFO_detect_git
657
0644
edit
dl
rm
VCS_INFO_detect_hg
674
0644
edit
dl
rm
VCS_INFO_detect_mtn
336
0644
edit
dl
rm
VCS_INFO_detect_p4
2360
0644
edit
dl
rm
VCS_INFO_detect_svk
1468
0644
edit
dl
rm
VCS_INFO_detect_svn
300
0644
edit
dl
rm
VCS_INFO_detect_tla
345
0644
edit
dl
rm
VCS_INFO_formats
3707
0644
edit
dl
rm
VCS_INFO_get_cmd
233
0644
edit
dl
rm
VCS_INFO_get_data_bzr
1238
0644
edit
dl
rm
VCS_INFO_get_data_cdv
305
0644
edit
dl
rm
VCS_INFO_get_data_cvs
512
0644
edit
dl
rm
VCS_INFO_get_data_darcs
311
0644
edit
dl
rm
VCS_INFO_get_data_git
5619
0644
edit
dl
rm
VCS_INFO_get_data_hg
8198
0644
edit
dl
rm
VCS_INFO_get_data_mtn
410
0644
edit
dl
rm
VCS_INFO_get_data_p4
1109
0644
edit
dl
rm
VCS_INFO_get_data_svk
729
0644
edit
dl
rm
VCS_INFO_get_data_svn
1292
0644
edit
dl
rm
VCS_INFO_get_data_tla
479
0644
edit
dl
rm
VCS_INFO_hook
1335
0644
edit
dl
rm
vcs_info_lastmsg
493
0644
edit
dl
rm
VCS_INFO_maxexports
472
0644
edit
dl
rm
VCS_INFO_nvcsformats
423
0644
edit
dl
rm
vcs_info_printsys
1298
0644
edit
dl
rm
VCS_INFO_quilt
5590
0644
edit
dl
rm
VCS_INFO_realpath
250
0644
edit
dl
rm
VCS_INFO_reposub
295
0644
edit
dl
rm
VCS_INFO_set
853
0644
edit
dl
rm
vcs_info_setsys
571
0644
edit
dl
rm
which-command
1031
0644
edit
dl
rm
xtermctl
4185
0644
edit
dl
rm
zargs
8874
0644
edit
dl
rm
zcalc
7129
0755
edit
dl
rm
zed
2162
0755
edit
dl
rm
zed-set-file-name
145
0644
edit
dl
rm
zfanon
1904
0644
edit
dl
rm
zfautocheck
1318
0644
edit
dl
rm
zfcd
1933
0644
edit
dl
rm
zfcd_match
1161
0644
edit
dl
rm
zfcget
2077
0644
edit
dl
rm
zfclose
90
0644
edit
dl
rm
zfcput
2491
0644
edit
dl
rm
zfdir
3229
0644
edit
dl
rm
zffcache
729
0644
edit
dl
rm
zfgcp
1954
0644
edit
dl
rm
zfget
1775
0644
edit
dl
rm
zfget_match
824
0644
edit
dl
rm
zfgoto
2250
0644
edit
dl
rm
zfhere
181
0644
edit
dl
rm
zfinit
2550
0644
edit
dl
rm
zfls
208
0644
edit
dl
rm
zfmark
1442
0644
edit
dl
rm
zfopen
1186
0644
edit
dl
rm
zfparams
687
0644
edit
dl
rm
zfpcp
1300
0644
edit
dl
rm
zfput
1444
0644
edit
dl
rm
zfrglob
2137
0644
edit
dl
rm
zfrtime
1362
0644
edit
dl
rm
zfsession
1644
0644
edit
dl
rm
zfstat
2024
0644
edit
dl
rm
zftp_chpwd
1386
0644
edit
dl
rm
zftp_progress
2081
0644
edit
dl
rm
zftransfer
1578
0644
edit
dl
rm
zftype
613
0644
edit
dl
rm
zfuget
3923
0644
edit
dl
rm
zfuput
2680
0644
edit
dl
rm
zkbd
7172
0755
edit
dl
rm
zmathfuncdef
2279
0644
edit
dl
rm
zmv
11142
0644
edit
dl
rm
zrecompile
6185
0644
edit
dl
rm
zsh-mime-handler
8055
0644
edit
dl
rm
zsh-mime-setup
11359
0644
edit
dl
rm
zsh-newuser-install
30038
0644
edit
dl
rm
zstyle+
1267
0644
edit
dl
rm
ztodo
1405
0644
edit
dl
rm
_a2ps
2809
0644
edit
dl
rm
_a2utils
487
0644
edit
dl
rm
_aap
2638
0644
edit
dl
rm
_acpi
1272
0644
edit
dl
rm
_acpitool
2435
0644
edit
dl
rm
_acroread
3501
0644
edit
dl
rm
_alias
711
0644
edit
dl
rm
_aliases
708
0644
edit
dl
rm
_all_labels
920
0644
edit
dl
rm
_all_matches
970
0644
edit
dl
rm
_alternative
1950
0644
edit
dl
rm
_analyseplugin
647
0644
edit
dl
rm
_ant
6106
0644
edit
dl
rm
_antiword
1109
0644
edit
dl
rm
_apachectl
116
0644
edit
dl
rm
_apm
1680
0644
edit
dl
rm
_approximate
3472
0644
edit
dl
rm
_apt
20700
0644
edit
dl
rm
_apt-file
1796
0644
edit
dl
rm
_apt-move
1812
0644
edit
dl
rm
_apt-show-versions
750
0644
edit
dl
rm
_aptitude
3257
0644
edit
dl
rm
_arch_archives
413
0644
edit
dl
rm
_arch_namespace
3308
0644
edit
dl
rm
_arguments
16936
0644
edit
dl
rm
_arg_compile
7569
0644
edit
dl
rm
_arp
1169
0644
edit
dl
rm
_arping
1351
0644
edit
dl
rm
_arrays
86
0644
edit
dl
rm
_assign
64
0644
edit
dl
rm
_attr
2294
0644
edit
dl
rm
_auto-apt
1081
0644
edit
dl
rm
_autocd
85
0644
edit
dl
rm
_awk
972
0644
edit
dl
rm
_axi-cache
725
0644
edit
dl
rm
_bash_completions
1358
0644
edit
dl
rm
_baz
16017
0644
edit
dl
rm
_bindkey
2048
0644
edit
dl
rm
_bind_addresses
408
0644
edit
dl
rm
_bison
923
0644
edit
dl
rm
_bittorrent
4902
0644
edit
dl
rm
_bogofilter
5288
0644
edit
dl
rm
_brace_parameter
43
0644
edit
dl
rm
_brctl
1762
0644
edit
dl
rm
_bsd_pkg
5553
0644
edit
dl
rm
_bts
7051
0644
edit
dl
rm
_bug
4687
0644
edit
dl
rm
_builtin
178
0644
edit
dl
rm
_bzip2
2364
0644
edit
dl
rm
_bzr
10732
0644
edit
dl
rm
_cache_invalid
707
0644
edit
dl
rm
_cal
547
0644
edit
dl
rm
_calendar
1406
0644
edit
dl
rm
_call_function
737
0644
edit
dl
rm
_call_program
211
0644
edit
dl
rm
_canonical_paths
4203
0644
edit
dl
rm
_ccal
778
0644
edit
dl
rm
_cd
3671
0644
edit
dl
rm
_cdbs-edit-patch
56
0644
edit
dl
rm
_cdcd
2142
0644
edit
dl
rm
_cdr
1196
0644
edit
dl
rm
_cdrdao
8249
0644
edit
dl
rm
_cdrecord
4862
0644
edit
dl
rm
_chflags
1539
0644
edit
dl
rm
_chkconfig
777
0644
edit
dl
rm
_chmod
2278
0644
edit
dl
rm
_chown
2538
0644
edit
dl
rm
_chrt
1667
0644
edit
dl
rm
_combination
2500
0644
edit
dl
rm
_comm
409
0644
edit
dl
rm
_command
238
0644
edit
dl
rm
_command_names
1153
0644
edit
dl
rm
_compdef
1963
0644
edit
dl
rm
_complete
3167
0644
edit
dl
rm
_complete_debug
755
0644
edit
dl
rm
_complete_help
2455
0644
edit
dl
rm
_complete_help_generic
412
0644
edit
dl
rm
_complete_tag
1866
0644
edit
dl
rm
_compress
1414
0644
edit
dl
rm
_condition
1696
0644
edit
dl
rm
_configure
444
0644
edit
dl
rm
_coreadm
1500
0644
edit
dl
rm
_correct
518
0644
edit
dl
rm
_correct_filename
1961
0644
edit
dl
rm
_correct_word
388
0644
edit
dl
rm
_cowsay
535
0644
edit
dl
rm
_cp
2396
0644
edit
dl
rm
_cpio
4658
0644
edit
dl
rm
_cplay
339
0644
edit
dl
rm
_cssh
795
0644
edit
dl
rm
_csup
1128
0644
edit
dl
rm
_ctags_tags
170
0644
edit
dl
rm
_cut
2636
0644
edit
dl
rm
_cvs
28948
0644
edit
dl
rm
_cvsup
937
0644
edit
dl
rm
_cygcheck
2052
0644
edit
dl
rm
_cygpath
2613
0644
edit
dl
rm
_cygrunsrv
2772
0644
edit
dl
rm
_cygserver
1539
0644
edit
dl
rm
_cygstart
2178
0644
edit
dl
rm
_dak
9184
0644
edit
dl
rm
_darcs
1199
0644
edit
dl
rm
_date
1132
0644
edit
dl
rm
_dchroot
1058
0644
edit
dl
rm
_dchroot-dsa
987
0644
edit
dl
rm
_dcop
2945
0644
edit
dl
rm
_dd
812
0644
edit
dl
rm
_debchange
511
0644
edit
dl
rm
_debdiff
894
0644
edit
dl
rm
_debfoster
3216
0644
edit
dl
rm
_debsign
623
0644
edit
dl
rm
_deb_packages
3612
0644
edit
dl
rm
_default
682
0644
edit
dl
rm
_defaults
1724
0644
edit
dl
rm
_delimiters
329
0644
edit
dl
rm
_describe
3195
0644
edit
dl
rm
_description
3107
0644
edit
dl
rm
_devtodo
4554
0644
edit
dl
rm
_dhclient
925
0644
edit
dl
rm
_dhcpinfo
1203
0644
edit
dl
rm
_dict
2141
0644
edit
dl
rm
_dict_words
1292
0644
edit
dl
rm
_diff
90
0644
edit
dl
rm
_diffstat
727
0644
edit
dl
rm
_diff_options
7144
0644
edit
dl
rm
_directories
117
0644
edit
dl
rm
_directory_stack
1418
0644
edit
dl
rm
_dirs
262
0644
edit
dl
rm
_dir_list
680
0644
edit
dl
rm
_disable
459
0644
edit
dl
rm
_dispatch
2057
0644
edit
dl
rm
_django
5996
0644
edit
dl
rm
_dladm
14058
0644
edit
dl
rm
_dlocate
893
0644
edit
dl
rm
_dmidecode
935
0644
edit
dl
rm
_domains
585
0644
edit
dl
rm
_dpatch-edit-patch
1275
0644
edit
dl
rm
_dpkg
7458
0644
edit
dl
rm
_dpkg-buildpackage
1201
0644
edit
dl
rm
_dpkg-cross
1147
0644
edit
dl
rm
_dpkg-repack
378
0644
edit
dl
rm
_dpkg_source
1318
0644
edit
dl
rm
_dput
1288
0644
edit
dl
rm
_du
3184
0644
edit
dl
rm
_dumpadm
596
0644
edit
dl
rm
_dumper
377
0644
edit
dl
rm
_dupload
780
0644
edit
dl
rm
_dvi
4034
0644
edit
dl
rm
_dynamic_directory_name
164
0644
edit
dl
rm
_ecasound
8577
0644
edit
dl
rm
_echotc
93
0644
edit
dl
rm
_echoti
94
0644
edit
dl
rm
_elinks
2958
0644
edit
dl
rm
_elm
653
0644
edit
dl
rm
_email_addresses
5452
0644
edit
dl
rm
_emulate
217
0644
edit
dl
rm
_enable
338
0644
edit
dl
rm
_enscript
5362
0644
edit
dl
rm
_env
429
0644
edit
dl
rm
_equal
33
0644
edit
dl
rm
_espeak
2083
0644
edit
dl
rm
_ethtool
6771
0644
edit
dl
rm
_expand
6902
0644
edit
dl
rm
_expand_alias
1990
0644
edit
dl
rm
_expand_word
307
0644
edit
dl
rm
_fakeroot
486
0644
edit
dl
rm
_fc
1364
0644
edit
dl
rm
_feh
7011
0644
edit
dl
rm
_fetch
1394
0644
edit
dl
rm
_fetchmail
554
0644
edit
dl
rm
_ffmpeg
5278
0644
edit
dl
rm
_figlet
1503
0644
edit
dl
rm
_files
3602
0644
edit
dl
rm
_file_descriptors
826
0644
edit
dl
rm
_file_systems
1164
0644
edit
dl
rm
_find
2618
0644
edit
dl
rm
_finger
2157
0644
edit
dl
rm
_fink
5366
0644
edit
dl
rm
_first
1631
0644
edit
dl
rm
_flasher
1660
0644
edit
dl
rm
_flex
1451
0644
edit
dl
rm
_floppy
110
0644
edit
dl
rm
_fortune
601
0644
edit
dl
rm
_freebsd-update
935
0644
edit
dl
rm
_fsh
519
0644
edit
dl
rm
_fstat
675
0644
edit
dl
rm
_functions
101
0644
edit
dl
rm
_fuser
2107
0644
edit
dl
rm
_fusermount
650
0644
edit
dl
rm
_fuse_arguments
1078
0644
edit
dl
rm
_fuse_values
1648
0644
edit
dl
rm
_gcc
11498
0644
edit
dl
rm
_gcore
805
0644
edit
dl
rm
_gdb
1725
0644
edit
dl
rm
_generic
328
0644
edit
dl
rm
_genisoimage
2006
0644
edit
dl
rm
_getclip
532
0644
edit
dl
rm
_getconf
2225
0644
edit
dl
rm
_getent
1514
0644
edit
dl
rm
_getfacl
1370
0644
edit
dl
rm
_getmail
1080
0644
edit
dl
rm
_git
169890
0644
edit
dl
rm
_git-buildpackage
2574
0644
edit
dl
rm
_global
1849
0644
edit
dl
rm
_global_tags
186
0644
edit
dl
rm
_globflags
693
0644
edit
dl
rm
_globquals
5704
0644
edit
dl
rm
_globqual_delims
466
0644
edit
dl
rm
_gnome-gv
139
0644
edit
dl
rm
_gnupod
5699
0644
edit
dl
rm
_gnutls
6250
0644
edit
dl
rm
_gnu_generic
178
0644
edit
dl
rm
_gpg
13275
0644
edit
dl
rm
_gphoto2
2504
0644
edit
dl
rm
_gprof
1337
0644
edit
dl
rm
_gqview
619
0644
edit
dl
rm
_graphicsmagick
28872
0644
edit
dl
rm
_grep
4074
0644
edit
dl
rm
_grep-excuses
315
0644
edit
dl
rm
_groff
2251
0644
edit
dl
rm
_groups
1009
0644
edit
dl
rm
_growisofs
19631
0644
edit
dl
rm
_gs
1616
0644
edit
dl
rm
_guard
169
0644
edit
dl
rm
_guilt
1552
0644
edit
dl
rm
_gv
1309
0644
edit
dl
rm
_gzip
3529
0644
edit
dl
rm
_hash
1128
0644
edit
dl
rm
_have_glob_qual
858
0644
edit
dl
rm
_hdiutil
22443
0644
edit
dl
rm
_hg
29794
0644
edit
dl
rm
_history
1343
0644
edit
dl
rm
_history_complete_word
3451
0644
edit
dl
rm
_history_modifiers
1953
0644
edit
dl
rm
_hosts
2378
0644
edit
dl
rm
_iconv
1989
0644
edit
dl
rm
_id
453
0644
edit
dl
rm
_ifconfig
2866
0644
edit
dl
rm
_iftop
665
0644
edit
dl
rm
_ignored
1647
0644
edit
dl
rm
_imagemagick
28109
0644
edit
dl
rm
_inetadm
406
0644
edit
dl
rm
_init_d
2576
0644
edit
dl
rm
_invoke-rc.d
555
0644
edit
dl
rm
_in_vared
813
0644
edit
dl
rm
_ionice
337
0644
edit
dl
rm
_ip
18962
0644
edit
dl
rm
_ipset
6449
0644
edit
dl
rm
_iptables
10602
0644
edit
dl
rm
_irssi
1351
0644
edit
dl
rm
_ispell
4210
0644
edit
dl
rm
_iwconfig
2397
0644
edit
dl
rm
_java
23468
0644
edit
dl
rm
_java_class
681
0644
edit
dl
rm
_jobs
1987
0644
edit
dl
rm
_jobs_bg
27
0644
edit
dl
rm
_jobs_builtin
360
0644
edit
dl
rm
_jobs_fg
31
0644
edit
dl
rm
_joe
2274
0644
edit
dl
rm
_join
933
0644
edit
dl
rm
_kfmclient
3267
0644
edit
dl
rm
_kill
475
0644
edit
dl
rm
_killall
365
0644
edit
dl
rm
_kld
867
0644
edit
dl
rm
_knock
304
0644
edit
dl
rm
_kvno
566
0644
edit
dl
rm
_last
472
0644
edit
dl
rm
_ldd
1311
0644
edit
dl
rm
_ld_debug
1169
0644
edit
dl
rm
_less
5673
0644
edit
dl
rm
_lighttpd
413
0644
edit
dl
rm
_limit
166
0644
edit
dl
rm
_limits
105
0644
edit
dl
rm
_linda
1443
0644
edit
dl
rm
_links
2091
0644
edit
dl
rm
_lintian
4745
0644
edit
dl
rm
_list
822
0644
edit
dl
rm
_list_files
1420
0644
edit
dl
rm
_loadkeys
595
0644
edit
dl
rm
_locales
349
0644
edit
dl
rm
_locate
4606
0644
edit
dl
rm
_logical_volumes
455
0644
edit
dl
rm
_look
444
0644
edit
dl
rm
_losetup
737
0644
edit
dl
rm
_lp
1382
0644
edit
dl
rm
_ls
6078
0644
edit
dl
rm
_lscfg
658
0644
edit
dl
rm
_lsdev
1427
0644
edit
dl
rm
_lslv
348
0644
edit
dl
rm
_lsof
2380
0644
edit
dl
rm
_lspv
432
0644
edit
dl
rm
_lsusb
861
0644
edit
dl
rm
_lsvg
505
0644
edit
dl
rm
_lynx
11166
0644
edit
dl
rm
_lzop
3839
0644
edit
dl
rm
_mac_applications
139
0644
edit
dl
rm
_mac_files_for_application
2000
0644
edit
dl
rm
_madison
688
0644
edit
dl
rm
_mail
432
0644
edit
dl
rm
_mailboxes
6024
0644
edit
dl
rm
_main_complete
9598
0644
edit
dl
rm
_make
4706
0644
edit
dl
rm
_make-kpkg
2642
0644
edit
dl
rm
_man
3324
0644
edit
dl
rm
_match
2429
0644
edit
dl
rm
_math
327
0644
edit
dl
rm
_md5sum
457
0644
edit
dl
rm
_mdadm
8004
0644
edit
dl
rm
_members
390
0644
edit
dl
rm
_mencal
1082
0644
edit
dl
rm
_menu
558
0644
edit
dl
rm
_mere
57
0644
edit
dl
rm
_mergechanges
106
0644
edit
dl
rm
_message
788
0644
edit
dl
rm
_metaflac
1447
0644
edit
dl
rm
_mh
3596
0644
edit
dl
rm
_mii-tool
748
0644
edit
dl
rm
_mime_types
1156
0644
edit
dl
rm
_mkdir
1894
0644
edit
dl
rm
_mkshortcut
1274
0644
edit
dl
rm
_mkzsh
371
0644
edit
dl
rm
_module
5500
0644
edit
dl
rm
_module-assistant
2095
0644
edit
dl
rm
_modutils
4295
0644
edit
dl
rm
_mondo
2001
0644
edit
dl
rm
_monotone
2511
0644
edit
dl
rm
_most_recent_file
871
0644
edit
dl
rm
_mount
38276
0644
edit
dl
rm
_mozilla
4777
0644
edit
dl
rm
_mpc
6616
0644
edit
dl
rm
_mplayer
8284
0644
edit
dl
rm
_mt
3212
0644
edit
dl
rm
_mtools
4090
0644
edit
dl
rm
_mtr
725
0644
edit
dl
rm
_multi_parts
8351
0644
edit
dl
rm
_mutt
1005
0644
edit
dl
rm
_mysqldiff
1125
0644
edit
dl
rm
_mysql_utils
9979
0644
edit
dl
rm
_my_accounts
45
0644
edit
dl
rm
_nautilus
538
0644
edit
dl
rm
_ncftp
280
0644
edit
dl
rm
_nedit
2865
0644
edit
dl
rm
_netcat
1323
0644
edit
dl
rm
_netscape
2935
0644
edit
dl
rm
_net_interfaces
1056
0644
edit
dl
rm
_newsgroups
210
0644
edit
dl
rm
_next_label
600
0644
edit
dl
rm
_next_tags
3464
0644
edit
dl
rm
_nice
246
0644
edit
dl
rm
_nmap
3466
0644
edit
dl
rm
_normal
1011
0644
edit
dl
rm
_nothing
90
0644
edit
dl
rm
_nslookup
5677
0644
edit
dl
rm
_object_classes
146
0644
edit
dl
rm
_oldlist
1915
0644
edit
dl
rm
_open
1103
0644
edit
dl
rm
_options
182
0644
edit
dl
rm
_options_set
299
0644
edit
dl
rm
_options_unset
309
0644
edit
dl
rm
_osc
4146
0644
edit
dl
rm
_other_accounts
64
0644
edit
dl
rm
_pack
361
0644
edit
dl
rm
_parameter
37
0644
edit
dl
rm
_parameters
776
0644
edit
dl
rm
_patch
8141
0644
edit
dl
rm
_path_commands
2471
0644
edit
dl
rm
_path_files
25969
0644
edit
dl
rm
_pax
2786
0644
edit
dl
rm
_pbm
25861
0644
edit
dl
rm
_pbuilder
1258
0644
edit
dl
rm
_pdf
408
0644
edit
dl
rm
_perforce
84512
0644
edit
dl
rm
_perl
2564
0644
edit
dl
rm
_perldoc
1945
0644
edit
dl
rm
_perl_basepods
716
0644
edit
dl
rm
_perl_modules
4671
0644
edit
dl
rm
_pfctl
4205
0644
edit
dl
rm
_pfexec
670
0644
edit
dl
rm
_php
3063
0644
edit
dl
rm
_physical_volumes
124
0644
edit
dl
rm
_pick_variant
737
0644
edit
dl
rm
_pids
1627
0644
edit
dl
rm
_pine
2945
0644
edit
dl
rm
_ping
1732
0644
edit
dl
rm
_piuparts
972
0644
edit
dl
rm
_pkg-config
2156
0644
edit
dl
rm
_pkgadd
1012
0644
edit
dl
rm
_pkginfo
613
0644
edit
dl
rm
_pkgrm
551
0644
edit
dl
rm
_pkgtool
2436
0644
edit
dl
rm
_pkg_instance
353
0644
edit
dl
rm
_pon
443
0644
edit
dl
rm
_portaudit
563
0644
edit
dl
rm
_portlint
748
0644
edit
dl
rm
_portmaster
3975
0644
edit
dl
rm
_ports
285
0644
edit
dl
rm
_portsnap
1030
0644
edit
dl
rm
_postfix
530
0644
edit
dl
rm
_powerd
628
0644
edit
dl
rm
_prcs
6848
0644
edit
dl
rm
_precommand
188
0644
edit
dl
rm
_prefix
1618
0644
edit
dl
rm
_print
1549
0644
edit
dl
rm
_printenv
104
0644
edit
dl
rm
_printers
3209
0644
edit
dl
rm
_procstat
706
0644
edit
dl
rm
_prompt
296
0644
edit
dl
rm
_ps
333
0644
edit
dl
rm
_pscp
716
0644
edit
dl
rm
_pspdf
326
0644
edit
dl
rm
_psutils
3646
0644
edit
dl
rm
_ptree
449
0644
edit
dl
rm
_pump
1441
0644
edit
dl
rm
_putclip
538
0644
edit
dl
rm
_pydoc
436
0644
edit
dl
rm
_python
2074
0644
edit
dl
rm
_qemu
2527
0644
edit
dl
rm
_qiv
2647
0644
edit
dl
rm
_qtplay
525
0644
edit
dl
rm
_quilt
802
0644
edit
dl
rm
_raggle
2740
0644
edit
dl
rm
_rake
2849
0644
edit
dl
rm
_ranlib
403
0644
edit
dl
rm
_rar
4614
0644
edit
dl
rm
_rcs
766
0644
edit
dl
rm
_read
919
0644
edit
dl
rm
_readshortcut
1057
0644
edit
dl
rm
_read_comp
3852
0644
edit
dl
rm
_rebootin
574
0644
edit
dl
rm
_redirect
421
0644
edit
dl
rm
_regex_arguments
2496
0644
edit
dl
rm
_regex_words
746
0644
edit
dl
rm
_renice
424
0644
edit
dl
rm
_reprepro
2561
0644
edit
dl
rm
_requested
268
0644
edit
dl
rm
_retrieve_cache
732
0644
edit
dl
rm
_retrieve_mac_apps
3303
0644
edit
dl
rm
_ri
3470
0644
edit
dl
rm
_rlogin
2683
0644
edit
dl
rm
_rm
1564
0644
edit
dl
rm
_rpm
11028
0644
edit
dl
rm
_rpmbuild
3388
0644
edit
dl
rm
_rrdtool
491
0644
edit
dl
rm
_rsync
12311
0644
edit
dl
rm
_rubber
2708
0644
edit
dl
rm
_ruby
2907
0644
edit
dl
rm
_sablotron
1808
0644
edit
dl
rm
_samba
3436
0644
edit
dl
rm
_savecore
228
0644
edit
dl
rm
_sccs
6172
0644
edit
dl
rm
_sched
467
0644
edit
dl
rm
_schroot
1497
0644
edit
dl
rm
_screen
6399
0644
edit
dl
rm
_sed
986
0644
edit
dl
rm
_sep_parts
3801
0644
edit
dl
rm
_service
1048
0644
edit
dl
rm
_services
938
0644
edit
dl
rm
_set
1473
0644
edit
dl
rm
_setfacl
2010
0644
edit
dl
rm
_setopt
193
0644
edit
dl
rm
_setup
1958
0644
edit
dl
rm
_setxkbmap
2431
0644
edit
dl
rm
_set_command
815
0644
edit
dl
rm
_sh
461
0644
edit
dl
rm
_showmount
428
0644
edit
dl
rm
_signals
1013
0644
edit
dl
rm
_sisu
3936
0644
edit
dl
rm
_slrn
1131
0644
edit
dl
rm
_smit
856
0644
edit
dl
rm
_socket
1089
0644
edit
dl
rm
_softwareupdate
2332
0644
edit
dl
rm
_sort
2016
0644
edit
dl
rm
_source
226
0644
edit
dl
rm
_spamassassin
475
0644
edit
dl
rm
_sqsh
2158
0644
edit
dl
rm
_ssh
12549
0644
edit
dl
rm
_sshfs
752
0644
edit
dl
rm
_stat
568
0644
edit
dl
rm
_stgit
951
0644
edit
dl
rm
_store_cache
1742
0644
edit
dl
rm
_strace
6077
0644
edit
dl
rm
_strip
2363
0644
edit
dl
rm
_stty
762
0644
edit
dl
rm
_su
1944
0644
edit
dl
rm
_subscript
4284
0644
edit
dl
rm
_subversion
9250
0644
edit
dl
rm
_sub_commands
136
0644
edit
dl
rm
_sudo
1137
0644
edit
dl
rm
_suffix_alias_files
525
0644
edit
dl
rm
_surfraw
18143
0644
edit
dl
rm
_svcadm
1471
0644
edit
dl
rm
_svccfg
1667
0644
edit
dl
rm
_svcprop
634
0644
edit
dl
rm
_svcs
1029
0644
edit
dl
rm
_svcs_fmri
2684
0644
edit
dl
rm
_svn-buildpackage
2644
0644
edit
dl
rm
_sysctl
1712
0644
edit
dl
rm
_tags
1466
0644
edit
dl
rm
_tar
6104
0644
edit
dl
rm
_tardy
678
0644
edit
dl
rm
_tar_archive
1014
0644
edit
dl
rm
_tcpdump
4299
0644
edit
dl
rm
_tcpsys
1002
0644
edit
dl
rm
_tcptraceroute
583
0644
edit
dl
rm
_telnet
2140
0644
edit
dl
rm
_terminals
210
0644
edit
dl
rm
_tex
200
0644
edit
dl
rm
_texi
129
0644
edit
dl
rm
_texinfo
8719
0644
edit
dl
rm
_tidy
7305
0644
edit
dl
rm
_tiff
7230
0644
edit
dl
rm
_tilde
732
0644
edit
dl
rm
_tilde_files
676
0644
edit
dl
rm
_time_zone
222
0644
edit
dl
rm
_tin
2116
0644
edit
dl
rm
_tla
17997
0644
edit
dl
rm
_tmux
49423
0644
edit
dl
rm
_todo.sh
4169
0644
edit
dl
rm
_toilet
863
0644
edit
dl
rm
_toolchain-source
328
0644
edit
dl
rm
_topgit
177
0644
edit
dl
rm
_totd
287
0644
edit
dl
rm
_tpb
975
0644
edit
dl
rm
_tpconfig
1120
0644
edit
dl
rm
_tracepath
87
0644
edit
dl
rm
_trap
101
0644
edit
dl
rm
_ttyctl
113
0644
edit
dl
rm
_tune2fs
1405
0644
edit
dl
rm
_twisted
2835
0644
edit
dl
rm
_typeset
3752
0644
edit
dl
rm
_ulimit
1020
0644
edit
dl
rm
_uml
5261
0644
edit
dl
rm
_unace
472
0644
edit
dl
rm
_uname
2558
0644
edit
dl
rm
_unexpand
620
0644
edit
dl
rm
_unhash
555
0644
edit
dl
rm
_uniq
1173
0644
edit
dl
rm
_units
2812
0644
edit
dl
rm
_unsetopt
190
0644
edit
dl
rm
_update-alternatives
1384
0644
edit
dl
rm
_update-rc.d
637
0644
edit
dl
rm
_urls
5918
0644
edit
dl
rm
_urpmi
13818
0644
edit
dl
rm
_urxvt
1481
0644
edit
dl
rm
_uscan
1037
0644
edit
dl
rm
_users
251
0644
edit
dl
rm
_users_on
253
0644
edit
dl
rm
_user_admin
1943
0644
edit
dl
rm
_user_at_host
729
0644
edit
dl
rm
_user_expand
3469
0644
edit
dl
rm
_uzbl
304
0644
edit
dl
rm
_valgrind
4909
0644
edit
dl
rm
_value
1623
0644
edit
dl
rm
_values
3750
0644
edit
dl
rm
_vared
326
0644
edit
dl
rm
_vars
469
0644
edit
dl
rm
_vim
4662
0644
edit
dl
rm
_vim-addons
1660
0644
edit
dl
rm
_vnc
904
0644
edit
dl
rm
_volume_groups
87
0644
edit
dl
rm
_vorbis
5699
0644
edit
dl
rm
_vorbiscomment
607
0644
edit
dl
rm
_vserver
3058
0644
edit
dl
rm
_vux
1812
0644
edit
dl
rm
_w3m
4531
0644
edit
dl
rm
_wait
66
0644
edit
dl
rm
_wajig
2513
0644
edit
dl
rm
_wakeup_capable_devices
439
0644
edit
dl
rm
_wanna-build
2070
0644
edit
dl
rm
_wanted
183
0644
edit
dl
rm
_webbrowser
203
0644
edit
dl
rm
_wget
7465
0644
edit
dl
rm
_whereis
36
0644
edit
dl
rm
_which
1132
0644
edit
dl
rm
_whois
4819
0644
edit
dl
rm
_wiggle
1119
0644
edit
dl
rm
_xargs
502
0644
edit
dl
rm
_xauth
2580
0644
edit
dl
rm
_xdvi
1704
0644
edit
dl
rm
_xfig
1972
0644
edit
dl
rm
_xloadimage
3902
0644
edit
dl
rm
_xmlsoft
6425
0644
edit
dl
rm
_xmms2
5383
0644
edit
dl
rm
_xmodmap
2274
0644
edit
dl
rm
_xpdf
1759
0644
edit
dl
rm
_xrandr
1089
0644
edit
dl
rm
_xscreensaver
823
0644
edit
dl
rm
_xset
5196
0644
edit
dl
rm
_xterm
905
0644
edit
dl
rm
_xt_arguments
1744
0644
edit
dl
rm
_xt_session_id
40
0644
edit
dl
rm
_xv
2484
0644
edit
dl
rm
_xwit
4743
0644
edit
dl
rm
_x_arguments
600
0644
edit
dl
rm
_x_borderwidth
125
0644
edit
dl
rm
_x_color
1007
0644
edit
dl
rm
_x_colormapid
396
0644
edit
dl
rm
_x_cursor
409
0644
edit
dl
rm
_x_display
75
0644
edit
dl
rm
_x_extension
484
0644
edit
dl
rm
_x_font
307
0644
edit
dl
rm
_x_geometry
125
0644
edit
dl
rm
_x_keysym
615
0644
edit
dl
rm
_x_locale
120
0644
edit
dl
rm
_x_modifier
153
0644
edit
dl
rm
_x_name
116
0644
edit
dl
rm
_x_resource
124
0644
edit
dl
rm
_x_selection_timeout
130
0644
edit
dl
rm
_x_title
118
0644
edit
dl
rm
_x_utils
4650
0644
edit
dl
rm
_x_visual
272
0644
edit
dl
rm
_x_window
402
0644
edit
dl
rm
_yafc
1844
0644
edit
dl
rm
_yast
525
0644
edit
dl
rm
_yodl
658
0644
edit
dl
rm
_yp
3242
0644
edit
dl
rm
_yum
7845
0644
edit
dl
rm
_zattr
552
0644
edit
dl
rm
_zcalc_line
1721
0644
edit
dl
rm
_zcat
99
0644
edit
dl
rm
_zcompile
927
0644
edit
dl
rm
_zdump
112
0644
edit
dl
rm
_zed
179
0644
edit
dl
rm
_zfs
6716
0644
edit
dl
rm
_zfs_dataset
675
0644
edit
dl
rm
_zfs_pool
51
0644
edit
dl
rm
_zftp
2582
0644
edit
dl
rm
_zip
5380
0644
edit
dl
rm
_zle
2292
0644
edit
dl
rm
_zlogin
300
0644
edit
dl
rm
_zmodload
2292
0644
edit
dl
rm
_zmv
805
0644
edit
dl
rm
_zpool
3995
0644
edit
dl
rm
_zpty
2005
0644
edit
dl
rm
_zsh-mime-handler
719
0644
edit
dl
rm
_zstyle
14564
0644
edit
dl
rm
_ztodo
586
0644
edit
dl
rm
Edit:
/usr/share/zsh/4.3.11/functions/_mount
(38276B)
#compdef mount umount if [[ "$OSTYPE" == cygwin ]]; then if [[ "$service" == mount ]] ; then _arguments -s \ - mount \ '(-b -t --text --binary)'{-b,--binary}'[Unix line endings LF]' \ '(-f --force)'{-f,--force}'[be silent]' \ '(-s -u --user --system)'{-s,--system}'[system-wide mount point]' \ '(-t -b --binary --text)'{-t,--text}'[DOS line endings CR-LF]' \ '(-u -s --system --user)'{-u,--user}'[user private mount point]' \ '(-x -X --executable --cygwin-executable)'{-x,--executable}'[all files under mountpoint are executables]' \ '(-x -X --executable --cygwin-executable)'{-X,--cygwin-executable}'[all files under mountpoint are cygwin executables]' \ ':Windows path:' \ ':Unix path:_path_files -P/ -W "(/)" -/' \ - control \ '(-)'{-i,--import-old-mounts}'[import old mounts]' \ '(-)'{-p,--show-cygdrive-prefix}'[show cygdrive prefix]' \ '(-)'{-c,--change-cygdrive-prefix}'[cygdrive prefix]:cygdrive prefix (POSIX path):_files -P/ -W "(/)" -/' \ return else local line local -a wpaths upaths mount | while read -r line; do [[ $line == ?:\ * ]] && continue wpaths+=( ${line%% on*} ) upaths+=( ${${line##*on }%% type*} ) done _alternative \ 'windowspath:Windows path:compadd -a wpaths' \ 'unixpath:Unix path:compadd -a upaths' return fi fi # This is table-driven: the tables for the values for the different # file system types are directly below. The tables describing the # arguments for the `mount' command for different operating systems # 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 \ _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_procfs typeset -A opt_args if (( ! $+_fs_any )); then local _fs_any # These are tables describing the possible values and their # arguments for the `-o' option. There is one array per # file system type (only for those that accept more values # than those in the `_fs_any' array). The elements of the # array are used as arguments to `_values'. The first tables # are used by several systems while system specific tables are # (re)defined in a "$OSTYPE" case. _fs_any=( '(rw)ro[mount file system read-only]' '(ro)rw[mount file system read-write]' ) _nfs_access=( 'acregmin[specify cached file attributes minimum hold time]:cached file attributes minimum hold time' 'acregmax[specify cached file attributes maximum hold time]:cached file attributes maximum hold time' 'acdirmin[specify cached directory attributes minimum hold time]:cached directory attributes minimum hold time' 'acdirmax[specify cached directory attributes maximum hold time]:cached directory attributes maximum hold time' "actimeo[set all attributes' cache timeout]:cache timeout" ) _fs_nfs=( 'rsize[specify read buffer size]:read buffer size:(8192)' 'wsize[specify write buffer size]:write buffer size:(8192)' '(soft)hard[hang process on server crash (so to say)]' '(hard)soft[allow time out on server crash]' '(nolock)lock[use locking]' "(lock)nolock[don't use locking]" 'timeo[specify initial timeout for UDP]:initial timeout for UDP' 'retrans[set number of NFS retransmissions]:number of NFS retransmissions' 'retry[specify number of mount failure retries]:mount failure retries' '(fg)bg[retry in the background]' '(bg)fg[retry in the foreground]' '(nintr)intr[allow operations to be interrupted]' '(intr)nintr[prevent operations from being interrupted]' '(nfsv3)nfsv2[use NFS version 2]' '(nfsv2)nfsv3[use NFS version 3]' 'proto[specify protocol]:protocol:(udp tcp)' 'port[specify server port number]:server port number' 'proplist[allow property lists]' "$_nfs_access[@]" "nocto[don't get fresh attributes on open]" "noac[don't set attribute caching]" ) _nfs_ufs=( '(nodev)dev[interpret devices]' "(dev)nodev[don't interpret devices]" '(nosuid)suid[use suid and sgid bits]' '(suid)nosuid[ignore suid and sgid bits]' '(nosync)sync[do I/O synchronously]' '(sync)nosync[do all I/O asynchronously]' '(noexec)exec[permit execution of binaries]' "(exec)noexec[don't allow execution of binaries]" '(nogrpid)grpid[new file gets group ID of directory]' '(grpid)nogrpid[new file gets fsgid of current process]' ) _fs_ufs=( 'dirty[allow mount even if not cleanly unmounted]' "$_nfs_ufs[@]" ) case "$OSTYPE" in aix*) _fs_any=( 'bsy[prevent mount over cwd of process]' 'log[logical volume to log operations]:logical volume name' 'nodev[cannot open devices from mount]' 'nosuid[prevent running setuid/setgid from mount]' "$_fs_any[@]" ) _fs_nfs=( '(fg)bg[mount in background]' '(bg)fg[mount in foreground]' 'vers[NFS version]:NFS version:(2 3)' 'proto[specify transport protocol]' 'retry[number of retries]:no. of retries' 'rsize[read buffer size]:read buffer size' 'wsize[write buffer size]:write buffer size' 'llock[local locking]' 'timeo[time-out period]:time-out period' 'retrans[NFS transmissions]:no. of NFS transmissions' 'port[IP port no]:IP port no' '(hard)soft[error on no server response]' '(soft)hard[retry pending server response]' '(nointr)intr[allow keyboard interrupts on hard mount]' '(intr)nointr[disallow keyboard interrupts on hard mount]' 'posix[exchange pathconf info on NFS version 2 mount]' 'secure[use DES encryption]' 'grpid[inherit group id of parent directory]' "(acl)noacl[don't use access control lists]" '(noacl)acl[use access control lists for this mount]' 'noac[no attribute or directory caching]' 'shortdev[server lack support for 32-bit device special files]' "$_nfs_access[@]" ) ;; irix*) _fs_any=( 'nodev[cannot open devices from mount]' 'nosuid[prevent running setuid/setgid from mount]' 'grpid[inherit group id of parent directory]' "$_fs_any[@]" ) _fs_efs=( 'raw[raw device pathname to filesystem]:raw device pathname:->devordir' '(nofsck)fsck[fsck should check this filesystem by default]' '(fsck)nofsck[fsck should not check this filesystem by default]' '(noquota)quota[turn on quotas]' '(quota)noquota[turn off quotas]' 'lbsize[no of bytes transferred in each operation]:bytes' ) _fs_iso9660=( 'setx[set execute permissions on every file]' 'notranslate[don'\''t translate filenames]' 'cache[no of 2048 blocks for directory cache]:cache size' 'noext[ignore rock ridge extensions]' '(nosusp)susp[enable system use sharing protocol]' '(susp)nosusp[disable system use sharing protocol]' '(norrip)rrip[enable rock ridge extensions]' '(rrip)norrip[disable rock ridge extensions]' 'nmconv[specify filename translation]:filename translation:((c\:no\ translation l\:to\ lowercase m\:suppress\ version\ no))' ) _fs_nfs=( '(fg)bg[mount in background]' '(bg)fg[mount in foreground]' 'retry[number of retries]:no. of retries' 'rsize[read buffer size]:read buffer size' 'wsize[write buffer size]:write buffer size' 'timeo[time-out period]:time-out period' 'retrans[NFS transmissions]:no. of NFS transmissions' 'port[IP port no]:IP port no' '(hard)soft[error on no server response]' '(soft)hard[retry pending server response]' 'intr[allow keyboard interrupts on hard mount]' 'noac[no attribute caching]' 'private[use local locking and do not flush on last close]' 'symttl[time-to-live of cached symbolic links]:seconds' "$_nfs_access[@]" ) _fs_cachefs=( 'backfstype[type of the back file system]:back file system type:(efs nfs iso9660 dos hfs cachefs)' 'backpath[specify back file system location]:back file system location:_files -/' 'cachedir[name of the cache directory]:name of cache directory:_files -/' 'cacheid[cache ID]:cache ID' '(write-around)non-shared[cache not shared]' '(non-shared)write-around[cache shared]' 'noconst[disable consistency checking]' 'local-access[check permissions locally]' 'purge[purge any cached information]' "$_nfs_access[@]" ) ;; solaris*) _fs_s5fs=( 'remount[remount file system]' '(suid)nosuid[ignore suid and sgid bits]' '(nosuid)suid[use suid and sgid bits]' ) _fs_ufs=( "(atime)noatime[don't update access time]" 'f[fake an /etc/mnttab entry]' "m[don't make an /etc/mnttab entry]" '(noforcedirection)forcedirection[do I/O synchronously]' '(forcedirection)noforcedirection[do all I/O asynchronously]' '(nointr)intr[allow operations to be interrupted]' '(intr)nointr[prevent operations from being interrupted]' "(nolargefiles)largefiles[don't restrict file size]" '(largefiles)nolargefiles[restrict file size]' '(nologging)logging[log transactions]' '(logging)nologging[log transactions]' 'onerror[action to recover from error]:action:(panic lock umount)' 'quota[turn on quotas]' '(ro rw)rq[mount file system read-write with quotas]' "$_fs_s5fs[@]" ) _fs_tmpfs=( 'size[set file system size]:size' ) _fs_pcfs=( '(nofoldcase)foldcase[force filenames to lowercase]' "(foldcase)nofoldcase[don't force filenames to lowercase]" ) _fs_hsfs=( 'nrr[no rock ridge]' 'notraildot[no trail dot when no extension]' "nomaplcase[don't force lowercase]" 'nosuid[ignore suid and sgid bits]' ) _fs_nfs=( '(fg)bg[retry in the background]' '(bg)fg[retry in the foreground]' '(nogrpid)grpid[new file gets group ID of directory]' '(grpid)nogrpid[new file gets fsgid of current process]' '(nointr)intr[allow operations to be interrupted]' '(intr)nointr[prevent operations from being interrupted]' '(sec secure)kerberos[use kerberos authentication]' 'noac[no attribute caching]' 'port[server IP port number]:port' 'posix[posix semantics]' 'proto[specify protocol]:protocol:'\("$(grep -v '^#' /etc/netconfig 2> /dev/null | cut -d ' ' -f 1)"\) 'public[force public file handle]' '(noquota)quota[enable quotas]' '(quota)noquota[disable quotas]' 'timeo[specify initial timeout for UDP]:initial timeout for UDP' 'retrans[set number of NFS retransmissions]:number of NFS retransmissions:(5)' 'retry[specify number of mount failure retries]:mount failure retries:(10000)' 'rsize[specify read buffer size]:read buffer size:(8192)' 'wsize[specify write buffer size]:write buffer size:(8192)' '(kerberos secure)sec[set the security mode]:security mode:(sys dh krb4 none)' '(kerberos sec)secure[use Diffie-Hellman public key system]' 'vers[set NFS version number]:NFS version number:(2 3)' "$_nfs_access[@]" "$_fs_s5fs[@]" ) _fs_cachefs=( 'backfstype[type of the back file system]:back file system type:(nfs hsfs)' 'backpath[specify back file system location]:back file system location:_files -/' 'cacheid[specify a cache ID]:cache ID' 'local-access[check permissions locally]' 'noconst[disable cache consistency checking]' 'purge[purge any cached information]' '(suid)nosuid[ignore setuid and setgid bits]' '(nosuid)suid[use setuid and setgid bits]' '(write-around)non-shared[purge cache on writes]' '(non-shared)write-around[keep file in cache on writes]' "$_nfs_access[@]" ) ;; osf*) _fs_advfs=( '(ro rw)rq[mount file system read-write]' 'dual[allow mount even if same domain ID as already mounted domain]' 'sync[do I/O synchronously]' ) _fs_cdfs=( '(nodefperm)defperm[ignore permission bits]' '(defperm)defperm[use permission bits]' 'noversion[strip off version extension]' 'rrip[use RRIP extensions]' ) _fs_nfs=( "$_nfs_ufs[@]" "$_fs_nfs[@]" ) ;; linux*) _fs_any=( '(sync)async[do all I/O asynchronously]' '(noatime)atime[update access time]' '(norelatime)relatime[update atime relative to mtime/ctime]' '(rw suid dev exec async)defaults[use default options]' '(nodev)dev[interpret devices]' '(noexec)exec[permit execution of binaries]' '(nomand)mand[allow mandatory locks]' "(atime)noatime[don't update access time]" "(relatime)norelatime[update access time without regard to mtime/ctime]" "(dev)nodev[don't interpret devices]" "(exec)noexec[don't allow execution of binaries]" "(mand)nomand[don'tallow mandatory locks]" '(suid)nosuid[ignore suid and sgid bits]' 'remount[mount already mounted file system]' '(rw)ro[mount file system read-only]' '(ro)rw[mount file system read-write]' '(nosuid)suid[use suid and sgid bits]' '(async)sync[do I/O synchronously]' 'dirsync[perform directory updates synchronously]' 'loop[use loopback device]::loopback device:_files' 'encryption[enable encryption]:cypher' 'keybits[set number of bits in encryption key]:key size:(64 128 160 192 256)' 'offset[specify data start for loopback mount]:offset (bytes)' ) _fs_adfs=( 'uid[set owner of root]:user ID' 'gid[set group of root]:group ID' 'ownmask[permission mask for ADFS "owner" permissions]:mask (octal)' 'othmask[permission mask for ADFS "other" permissions]:mask (octal)' ) _fs_affs=( 'uid[set owner of root]:user ID' 'gid[set group of root]:group ID' 'setuid[set owner of all files]:user ID' 'setgid[set group of all files]:group ID' 'mode[set file permissions]:file permission bits' "protect[don't allow changes to permissions]" 'usemp[set owner of root to owner of mount point]' 'verbose[print message per mount]' 'prefix[prefix before volume name when following link]:prefix string' "volume[prefix before '/' when following link]:prefix string" 'reserved[set number of unused blocks at start of device]:number of unused blocks' 'root[specify location of the root block]:root block location' 'bs[specify block size]:block size:(512 1024 2048 4192)' ) _fs_devpts=( "uid[set owner of newly created pty's]:user ID" "gid[set group of newly created pty's]:group ID" "mode[set mode of newly created pty's]:file permission bits" ) _fs_ext2=( '(noacl)acl[support POSIX access control lists]' '(acl)noacl[do not support POSIX access control lists]' '(minixdf)bsddf[select bsddf behavior]' '(bsddf)minixdf[select bsddf behavior]' '(nocheck)check[set checking level]::checking level:((normal\:check\ inode\ and\ block\ bitmaps\ on\ mount strict\:check\ on block\ deallocation none\:no\ checking))' 'debug[print debugging info upon each (re)mount]' 'errors[specify behavior on error]:error behavior:((continue\:ignore\ errors remount-ro\:remount\ file\ system\ read-only panic\:panic\ and\ halt\ system))' '(nogrpid bsdgroups sysvgroups)grpid[new file gets group ID of directory]' '(grpid nogrpid sysvgroups)bsdgroups[new file gets group ID of directory]' '(grpid bsdgroups sysvgroups)nogrpid[new file gets fsgid of current process]' '(grpid bsdgroups nogrpid)sysvgroups[new file gets fsgid of current process]' 'nobh[do not attach buffer_heads to file pagecache]' 'nouid32[disable 32-bit UIDs and GIDs]' '(orlov)oldalloc[use old allocator for new inodes]' '(oldalloc)orlov[use orlov allocator for new inodes]' 'resgid[specify access to reserved space (group ID)]:group ID' 'resuid[specify access to reserved space (user ID)]:user ID' 'sb[specify super block number]:super block number' '(nouser_xattr)user_xattr[support user extended attributes]' '(user_xattr)nouser_xattr[do not support user extended attributes]' ) _fs_fat=( 'blocksize[specify block size]:block size:(512 1024 2048)' 'uid[specify user ID of all files]:user ID' 'gid[specify group ID of all files]:group ID' 'umask[specify umask]:umask value (octal)' 'dmask[specify umask for directories only]:umask value (octal)' 'fmask[specify umask for files only]:umask value (octal)' 'check[specify checking level]:checking level:((relaxed\:accept\ upper\ and\ lower\ case,\ truncate\ long\ name normal\:like\ '"'\`'"'relaxed'"\\'"',\ but\ reject\ special\ characters strict\:like\ '"'\`'"'normal'"\\'"',\ but\ no\ long\ parts))' 'codepage[specify codepage for converting filenames to short form]:codepage' 'conf[specify CR/NL conversion]:CR/NL conversion mode:((binary\:no\ translation text\:conversion\ on\ all\ files auto\:perform\ translation\ on\ file\ without\ binary\ extension))' 'conv[convert form of text files]:mode:(binary text auto)' 'cvf_format[use specified compressed volume format module]:module' 'cvf_option[pass option to CVF module]:option' 'debug[debug mode]' 'fat[specify fat type]:fat type (bit):(12 16 32)' 'iocharset[character set to use for converting from 8 bit to unicode]:character set' 'quiet[quiet mode]' ) _fs_ext3=( "$_fs_ext2[@]" 'journal[update fs journal]:update or inode number:(update)' 'noload[do not load journal]' 'data[specify mode for data]:journalling mode:(journal ordered writeback)' 'commit[specify commit sync interval for data and metadata]:seconds' ) _fs_msdos=( "$_fs_fat[@]" ) _fs_umsdos=( "$_fs_fat[@]" ) _fs_vfat=( "$_fs_fat[@]" '(utf8)uni_xlate[translate unicode to escaped sequences]' 'posix[allow file names only differing in case]' 'nonumtail[try short name before number extension]' '(uni_xlate)utf8[mount the filesystem in UTF8 mode]' 'shortname[specify handling of 8.3 filenames]:mode:(lower win95 winnt mixed)' ) _fs_hfs=( 'creator[specify creator value]:creator' 'type[specify type value]:type' 'umask[specify umask]:umask value (octal)' 'dir_umask[specify umask for directories only]:umask value (octal)' 'file_umask[specify umask for files only]:umask value (octal)' 'session[specify CDROM session to mount]:session' 'part[specify partition number from device to use]:part' 'quiet[do not complain about invalid mount options]' ) _fs_hpfs=( 'uid[specify user ID of all files]:user ID' 'gid[specify group ID of all files]:group ID' 'umask[specify umask]:umask value (octal)' 'case[specify file name conversion]:file name conversion:((lower\:convert\ to\ lower\ case asis\:no\ conversion))' 'conv[specify CR elimination]:CR elimination:((binary\:no\ elimination test\:delete\ CRs\ \(e.g.\ before\ NL\) auto\:sometimes\ yes,\ sometimes\ not))' "nocheck[don't abort mount on consistency check failure]" ) _fs_iso9660=( 'norock[disable Rock Ridge extensions]' 'nojoliet[disable Microsoft Joliet extensions]' 'check[specify file name conversion]:file name conversion:((relaxed\:convert\ to\ lower\ case\ before\ lookup strict\:no\ conversion))' 'uid[specify user ID of all files]:user ID' 'gid[specify group ID of all files]:group ID' 'map[specify non-Rock Ridge name conversion]:file name conversion:((normal\:map\ upper\ to\ lower,\ ignore\ \;1,\ map\ \;\ to\ . off\:no\ conversion))' 'mode[specify permissions]:file access permissions' 'unhide[show hidden and associated files]' 'block[specify block size]:block size:(512 1024 2048)' 'cruft[ignore high bits of file length]' 'session[select session number on multisession CD]:session' 'sbsector[specify starting sector]:sector' 'iocharset[character set when converting from 8 bit to unicode (Joliet)]:character set' 'utf8[mount the filesystem in UTF8 mode (Joliet)]' ) _fs_jfs=( 'iocharset[character set when converting from unicode to ascii]:character set' 'resize[resize volume to specified number of blocks]:blocks' '(integrity)nointegrity[do not write to the journal]' '(nointegrity)integrity[commit metadata changes to the journal]' 'errors[specify behavior on error]:error behavior:((continue\:ignore\ errors remount-ro\:remount\ file\ system\ read-only panic\:panic\ and\ halt\ system))' ) _fs_ntfs=( 'iocharset[character set to use when returning file names]:character set' '(uni_xlate)utf8[use UTF-8 for converting file names]' '(utf8)uni_xlate[translate unicode to escaped sequences]:type:(0 1 2)' 'posix[distinguish upper and lower case]:state:((0\:off 1\:on))' 'uid[specify user ID of all files]:user ID' 'gid[specify group ID of all files]:group ID' 'umask[specify umask]:umask value (octal)' ) _fs_reiserfs=( 'conv[mount 3.5 fs using 3.6 format for new objects]' 'hash[choose hash type]:hash function:(rupasov tea r5 detect)' '(no_unhashed_relocation)hashed_relocation[tune the block allocator]' 'noborder[disable border allocator algorithm]' 'nolog[disable journalling]' 'notail[disable packing of files into the tree]' '(hashed_relocation)no_unhashed_relocation[tune the block allocator]' 'replayonly[replay but do not mount]' 'resize[assume the device has this many blocks]:number of blocks' ) _fs_smbfs=( "$_fs_nfs[@]" ) _fs_tmpfs=( 'size[set file system size]:size (bytes)' 'mode[set root directory permissions]:mode' 'nr_blocks[set number of blocks]:blocks' 'nr_inodes[set number of inodes]:inodes' ) _fs_udf=( 'uid[specify user ID of all files]:user ID' 'gid[specify group ID of all files]:group ID' 'umask[specify umask]:umask value (octal)' 'unhide[show hidden and associated files]' 'undelete[show deleted files]' 'nostrict[unset strict conformance]' 'bs[set the block size]:block size:2048' 'novrs[skip volume sequence recognition]' 'session[set the CDROM session]:session' 'anchor[override standard anchor location]:anchor location:256' 'lastblock[set the last block of the file system]:last block' ) _fs_ufs=( 'ufstype[set ufs type]:ufs type:(old 44bsd sun sunx86 nextstep nextstep-cd openstep)' 'onerror[set behaviour on error]:behaviour on error:(panic lock umount repair)' ) _fs_usbfs=( 'devuid[set owner of device files]:user ID' 'devgid[set group of device files]:group ID' 'devmode[set mode of device files]:file permission bits' 'busuid[set owner of bus directories]:user ID' 'busgid[set group of bus directories]:group ID' 'busmode[set mode of bus directories]:file permission bits' 'listuid[set owner of file devices]:user ID' 'listgid[set group of file devices]:group ID' 'listmode[set mode of file devices]:file permission bits' ) _fs_xfs=( 'biosize[specify preferred buffered I/O size]:base 2 logarithm:((13:8K 14:16K 15:32K 16:64K))' '(xdsm)dmapi[enable DMAPI event callouts]' '(dmapi)xdsm[enable DMAPI event callouts]' 'logbufs[set number of in-memory log buffers]:(2 3 4 5 6 7 8)' 'logbsize[set size of each in-memory log buffer]:(16384 32768)' 'logdev[use external log device]:_files' 'rtdev[use external realtime device]:_files' 'noalign[do not align data allocations at stripe unit boundaries]' 'noatime[do not update atime on reads]' 'norecovery[do not run log recovery]' 'nouuid[ignore the filesystem uuid]' 'osyncisdsync[make O_SYNC behave as O_DSYNC]' '(usrquota uqnoenforce)quota[enable user quotas]' '(quota uqnoenforce)usrquota[enable user quotas]' '(quota usrquota)uqnoenforce[enable user quotas without enforcement]' '(gqnoenforce)grpquota[enable group quotas]' '(grpquota)gqnoenforce[enable group quotas without enforcement]' 'sunit[specify stripe unit]:size' 'swidth[specify stripe width]:size' ) ;; freebsd*|dragonfly*) _fs_any=( '(sync)async[do all I/O asynchronously]' 'current[use current options on already mounted file system]' 'force[force R/W mount of unclean filesystem]' 'fstab[use options listed in /etc/fstab]' 'noasync[do I/O synchronously]' "noatime[don't update access time]" 'noauto[can only be mounted explicitly]' 'noclusterr[disable read clustering]' 'noclusterw[disable write clustering]' "nodev[don't interpret devices]" "noexec[don't allow execution of binaries]" 'nosuid[ignore suid and sgid bits]' "nosymfollow[don't follow symlinks]" 'rdonly[mount file system read-only]' '(async)sync[do all I/O synchronously]' 'suiddir[allow suid bits on directories]' 'update[change status of already mounted filesystem]' 'union[cause the namespace at the mount point to appear as the union of the mounted filesystem and the existing directory]' ) _fs_cd9660=( 'extatt[enable the use of extended attributes]' 'gens[do not strip version numbers on files]' 'nojoliet[do not use any Joliet extensions]' 'norrip[do not use any Rockridge extensions]' 'nostrictjoliet[relax checking for Supplementary Volume Descriptor Flags field]' ) _fs_std=( "nodev[don't interpret devices]" "noexec[don't allow execution of binaries]" 'nosuid[ignore suid and sgid bits]' 'rdonly[mount file system read-only]' 'union[cause the namespace at the mount point to appear as the union of the mounted filesystem and the existing directory]' ) _fs_devfs=( "$_fs_std[@]" ) _fs_fdesc=( "$_fs_std[@]" ) _fs_kernfs=( "$_fs_std[@]" ) _fs_linprocfs=( "$_fs_std[@]" ) _fs_procfs=( "$_fs_std[@]" ) _fs_msdos=( 'shortnames[]' 'longnames[]' 'nowin95[]' 'shortnames[force only the old MS-DOS 8.3 style filenames to be visible]' 'longnames[force Windows 95 long filenames to be visible]' 'nowin95[completely ignore Windows 95 extended file information]' ) if [[ "${OSTYPE}" =~ freebsd.* ]]; then _fs_msdosfs=( "$_fs_msdos[@]" ) fi ;; esac fi if [[ "$service" = mount ]]; then # Here are the tests and tables for the arguments and options for # the `mount' program. This should set the `deffs' parameter if # the default file system type is not `iso9660' (it should be set # to the name of the default file system type), and set 'typeops' # to the mount option for file system type selection when it is # not '-t'. case "$OSTYPE" in aix*) args=( -s '(:)-a[mount all filesystems in /etc/fstab]' '-f[forced mount]' '-n[remote node]:remote node:_hosts' '-p[mount as removable file system]' '-r[mount read-only]' '-t[specify file system type]:file system type:_file_systems' '-o[specify file system options]:file system option:->fsopt' '-v[filesystem defined by /etc/vfs]:VfsName' ':dev or dir:->devordir' ':mount point:_files -/' ) deffs=jfs ;; irix*) args=( -s '-a[mount all filesystems in /etc/fstab]' '-b[mount all filesystems in /etc/fstab except those listed]:mount point:_dir_list -s,' '-c[check any dirty filesystems before mounting]' "-f[fake a new /etc/mtab entry, but don't mount any filesystems]" '-h[mount all filesystems associated with host]:host:_hosts' '-n[mount filesystem without making entry in /etc/mtab]' '-o[specify file system options]:file system option:->fsopt' '-p[print list of mounted filesystems in format suitable for /etc/fstab]' '-r[mount read-only]' '-t[specify file system type]:file system type:_file_systems' '-v[verbose]' '-M[use alternate mtab]:alternate mtab:_files' '-P[with -p, prepend prefix to paths]:prefix' ) deffs=efs ;; linux*) args=( -s '(- :)-h[show help]' '(- :)-V[show version]' '(-V -h)-v[verbose mode]' '(-V -h)-p[specify file descriptor from which to read passphrase]:file descriptor:_file_descriptors' '(-V -h -o :)-a[mount all filesystems in fstab]' '(-V -h)-F[fork off one child per device]' '(-V -h)-f[fake mount]' "(-V -h)-i[don't call /sbin/mount.<fs> helper]" '(-V -h)-l[output ext2, ext3 and XFS labels]' "(-V -h)-n[don't write /etc/mtab]" '(-V -h)-s[tolerate sloppy mount options]' '(-V -h -w)-r[mount read-only]' '(-V -h -r)-w[mount read/write]' '(-V -h)-L[mount partition with specified label]:label' '(-V -h)-U[mount partition with specified uuid]:uuid' '(-V -h)-t[specify file system type]:file system type:->fslist' '(-V -h)-O[with -a, restrict filesystems by options]:file system option:->fsopt' '(-V -h -a -O)-o[specify file system options]:file system option:->fsopt' '(: -)--bind[remount part of filesystem elsewhere]:old directory:_directories:new directory:_directories' '(: -)--rbind[remount part of filesystem including submounts elsewhere]:old directory:_directories:new directory:_directories' '(: -)--move[move part of filesystem elsewhere]:old directory:_directories:new directory:_directories' ':dev or dir:->devordir' ':mount point:_files -/' ) ;; osf*) args=( -s '(-o :)-a[mount all filesystems in fstab]' '-d[mount even if not unmounted]' '-e[list all mount points]' '-f[fake mount]' '-l[display values of all file system options]' '-t[specify file system type]:file system type:_file_systems' '-o[specify file system options]:file system option:->fsopt' '-u[remount file system]' '-r[mount read-only]' '-w[mount read/write]' '-v[verbose]' ':dev or dir:->devordir' ':mount point:_files -/' ) deffs=cdfs ;; solaris*) args=( -s '(-p -v)-a[mount all filesystems in fstab]' '(-p -v)-F[specify file system type]:file system type:_file_systems' '(-a -v)-p[print mounted file systems]' '(-p -a)-v[print mounted file systems verbosely]' '(-p -v)-V[echo command-line but do not execute]' "(-p -v)-m[don't write /etc/mnttab]" '(-p -v)-g[mount globally]' '(-p -v)-o[specify file system options]:file system option:->fsopt' '(-p -v)-O[overlay mount]' '(-p -v)-r[mount read-only]' ':dev or dir:->devordir' ':mount point:_files -/' ) deffs=hsfs typeops=-F ;; freebsd*|dragonfly*) args=( -s '(:)-a[mount all filesystems in fstab]' '-d[cause everything to be done except for the actual system call]' '-f[forced mount]' '-o[specify file system options]:file system option:->fsopt' '-p[print mounted file systems]' '-r[mount readonly]' '-t[specify file system type]:file system type:->fslist' '-u[change status of already mounted filesystem]' '-v[verbose mode]' '-w[mount read/write]' ':dev or dir:->devordir' ':mount point:_files -/' ) deffs=ufs ;; *) # Default for all other systems. Dunno. args=( -s '(-o :)-a[mount all filesystems in fstab]' '-t[specify file system type]:file system type:_file_systems' '-o[specify file system options]:file system option:->fsopt' '-f[fake mount]' ':dev or dir:->devordir' ':mount point:_files -/' ) deffs=ufs ;; esac _arguments -C "$args[@]" && ret=0 else # Completion for umount. case "$OSTYPE" in aix*) args=( '(*)-a[unmount all mounted file systems]' '-f[force unmount]' '-n[remote node]:remote node:_hosts' '-t[specify file system type]:file system type:_file_systems' '*:dev or dir:->udevordir' ) ;; irix*) args=( '-a[unmount all mounted file systems]' '-b[unmount all filesystems in /etc/fstab except those listed]:mount point:_dir_list -s,' '-h[unmount all filesystems associated with host]:host:_hosts' '-k[kill all processes with files open on filesystems before unmounting]' '-t[unmount all filesystems of specified type]:file system type:_file_systems' '-v[verbose]' ) ;; linux*) args=( '(- *)-h[show help]' '(- *)-V[show version]' '(-V -h)-v[verbose mode]' "(-V -h)-n[don't write /etc/mtab]" '(-V -h)-r[remount read-only on failure]' '(-V -h)-d[for loopback mount, free loop device]' "(-V -h)-i[don't call /sbin/umount.<fs> helper]" '(-V -h *)-a[unmount all file systems from /etc/mtab]' '(-V -h)-t[specify file system type]:file system type:_file_systems' '(-V -h *)-O[with -a, restrict filesystems by options]:file system option:->fsopt' '(-V -h)-f[force unmount]' '(-V -h)-l[lazy unmount]' '*:dev or dir:->udevordir' ) ;; freebsd*|dragonfly*) args=( '(*)-a[unmount all mounted file systems]' '-A[unmount all mounted file systems except the root]' '-f[force unmount]' '-h[unmount all filesystems associated with host]:host:_hosts' '-t[unmount all filesystems of specified type]:file system type:->fslist' '-v[verbose mode]' '*:dev or dir:->udevordir' ) ;; solaris*) args=( '-a[unmount all mounted file systems]' '-f[force unmount]' '-V[echo command-line but do not execute]' '-o[specify file system options]:file system option:->fsopt' '*:dev or dir:->udevordir' ) ;; *) args=( '-v[verbose mode]' '(*)-a[unmount all file systems from /etc/mtab]' '-t[specify file system type]:file system type:_file_systems' '*:dev or dir:->udevordir' ) ;; esac _arguments -C -s "$args[@]" && ret=0 fi case "$state" in fslist) compset -P '*,' compset -S ',*' || suf=',' _file_systems -qS "$suf" ;; fsopt) _tags options || return 1 eval 'tmp=(' '"$_fs_'${(s:,:)^${opt_args[$typeops]:-${deffs}}}'[@]"' ')' tmp=( "$_fs_any[@]" "${(@)tmp:#}" ) _values -s , 'file system option' "$tmp[@]" && ret=0 ;; devordir) local dev_tmp mp_tmp mline if compset -P '*:'; then _wanted exports expl 'exported path' compadd \ ${${(f)"$(path+=( {/usr,}/sbin(N) ) _call_program exports \ showmount -e ${IPREFIX%:} 2>/dev/null)"}[2,-1]%% *} && ret=0 return ret fi if compset -S ':*'; then _hosts -S '' && ret=0 return ret fi case "$OSTYPE" in dragonfly*) while read mline; do case $mline[(w)1] in \#* ) ;; proc) ;; *) [[ $mline[(w)3] == swap ]] || \ dev_tmp+=( $mline[(w)1] ) \ mp_tmp+=( $mline[(w)2] ) ;; esac done < /etc/fstab _alternative \ 'hosts:host:_hosts -S :' \ 'devices:device:compadd -a dev_tmp' \ 'directories:mount point:compadd -a mp_tmp' && ret=0 ;; freebsd*) local _glabel while read mline; do case $mline[(w)1] in \#* ) ;; proc) ;; *) [[ $mline[(w)3] == swap ]] || \ dev_tmp+=( $mline[(w)1] ) \ mp_tmp+=( $mline[(w)2] ) ;; esac done < /etc/fstab # /sbin/ggatel list | while read mline; do dev_tmp+=(/dev/$mline) done # add glabel devices _glabel=(${(M)${(f)"$(/sbin/glabel list)"}:#*Name:[[:space:]]*/*}) for mline ($_glabel);do dev_tmp+=( mline[(w)3] ) done _alternative \ 'hosts:host:_hosts -S :' \ 'devices:device:compadd -a dev_tmp' \ 'directories:mount point:compadd -a mp_tmp' && ret=0 ;; *) if (( ${${(s.,.)opt_args[-o]}[(I)loop(|=*)]} )) ; then _wanted device-files expl 'loop device file' _files && ret=0 else _alternative \ 'hosts:host:_hosts -S :' \ 'files:device or mount point:_files -g "*(-%b,-/)"' && ret=0 fi ;; esac ;; udevordir) local dev_tmp dpath_tmp mp_tmp mline case "$OSTYPE" in linux*|irix*) tmp=( "${(@f)$(< /etc/mtab)}" ) dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) ;; freebsd*|dragonfly*) /sbin/mount | while read mline; do dev_tmp+=( $mline[(w)1] ) mp_tmp+=( $mline[(w)3] ) done ;; *) /sbin/mount | while read mline; do mp_tmp+=( $mline[(w)1] ) dev_tmp+=( $mline[(w)3] ) done ;; esac local MATCH MBEGIN MEND # "Mummy, why is mount point matching full of squiggles?" # # "Well, dear, the clever people who wrote Linux decided that some # funny characters that might confuse programmes looking at the names # would be encoded as octal escapes, like for example \040 for space. # The clever people who wrote zsh decided that nothing would # ever be quite as simple as it should be, so to substitute octal # escapes everywhere in a string, even though the shell understands # them natively in print escapes, needs some hackery where you match # the octal number using the numeric closure syntax introduced after # 4.3.4, then reinput the number in a standard math mode format as 8#OOO, # and turn that into a character using the (#) parameter flag." # # "Mummy, why is nothing ever quite as simple as it should be?" # # "Well, dear, if it was then the clever people who write programmes would # have been replaced by intelligent monkeys and then they'd be out # of working roaming the streets, and we wouldn't want that, would we?" mp_tmp=("${(@q)mp_tmp//(#m)\\[0-7](#c3)/${(#)$(( 8#${MATCH[2,-1]} ))}}") dpath_tmp=( "${(@Mq)dev_tmp:#/*}" ) dev_tmp=( "${(@q)dev_tmp:#/*}" ) _alternative \ 'device-labels:device label:compadd -a dev_tmp' \ 'device-paths: device path:_canonical_paths -A dpath_tmp -N device-paths device\ path' \ 'directories:mount point:_canonical_paths -A mp_tmp -N directories mount\ point' && ret=0 ;; esac return ret
Save
cmd:
run