diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2005-04-24 17:49:26 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-04-24 17:49:26 +0000 |
commit | d373eb8f1e27cbdcde2130c9b473bb8ca45529e6 (patch) | |
tree | bf214c5788d8cc3d2ec57c8ca6f2a52522fd1288 /Completion/Unix/Command | |
parent | 5733e942f5a88f33aeb9fca8538e3ffe7e2b7407 (diff) | |
download | zsh-d373eb8f1e27cbdcde2130c9b473bb8ca45529e6.tar.gz zsh-d373eb8f1e27cbdcde2130c9b473bb8ca45529e6.tar.xz zsh-d373eb8f1e27cbdcde2130c9b473bb8ca45529e6.zip |
Tobias Gruetzmacher 21168: locality and visibility of some completion vars
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_mount | 6 | ||||
-rw-r--r-- | Completion/Unix/Command/_subversion | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index 653d7d7c2..5d5f50163 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -40,7 +40,11 @@ fi # are below these table. local curcontext="$curcontext" state line suf ret=1 -local args deffs=iso9660 tmp typeops=-t _nfs_access _nfs_ufs +local args deffs=iso9660 tmp typeops=-t _fs_any _nfs_access _fs_nfs _nfs_ufs \ +_fs_ufs _fs_efs _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_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 diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index 51f874316..a3613f4a6 100644 --- a/Completion/Unix/Command/_subversion +++ b/Completion/Unix/Command/_subversion @@ -63,7 +63,7 @@ _svn_command () { local cmd if (( ! $+_svn_cmds )); then - typeset -gA _svn_cmds + typeset -gHA _svn_cmds _svn_cmds=( ${=${(f)${${"$(LC_MESSAGES=C _call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:} ) @@ -87,7 +87,7 @@ _svn_command () { (( $+functions[_svn_subcommand] )) || _svn_subcommand () { local subcmd _svn_subcmds _svn_subcmd_usage - typeset -A _cache_svn_status + typeset -gHA _cache_svn_status _svn_subcmd_usage=${${(M)${(f)"$(LC_MESSAGES=C _call_program options svn help $1)"}:#usage:*}#usage: $1 } @@ -146,7 +146,7 @@ _svnadmin_command () { local cmd if (( ! $+_svnadmin_cmds )); then - typeset -gA _svnadmin_cmds + typeset -gHA _svnadmin_cmds _svnadmin_cmds=( ${=${(f)${${"$(LC_MESSAGES=C _call_program commands svnadmin help)"#l#*Available subcommands:}}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:} ) |