From: Tobias Gruetzmacher <tobias@portfolio16.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Cleaner envrionment after some completions
Date: Sat, 23 Apr 2005 22:19:44 +0200 [thread overview]
Message-ID: <20050423201944.GA23939@portfolio16.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Hi,
this patch makes some internal variables of completions where I noticed
this behavior local to the completion function. This makes the "set"
output more readable again. The patch also hides the vales of the
package cache for apt, since I don't think it helps anyone to see the
names of all 21241 Debian packes when calling "set". This might also be
useful for other variables of the completion system, like _comps,
_services and _comp_setup.
Greetings Tobi
--
GPG-Key 0xE2BEA341 - signed/encrypted mail preferred
My, oh so small, homepage: http://portfolio16.de/
http://www.fli4l.de/ - ISDN- & DSL-Router on one disk!
eegistered FLI4L-User #00000003
[-- Attachment #2: clean-env.patch --]
[-- Type: text/plain, Size: 1821 bytes --]
--- orig/Completion/Debian/Command/_apt
+++ mod/Completion/Debian/Command/_apt
@@ -57,8 +57,8 @@
local short_seq false true bool bool_prefix intlevel word word1 nul qnul match
local comp_bool comp_intlevel comp_configfile comp_arbitem comp_long comp_opt
- local comp_release
- local regex_short regex_long regex_all
+ local comp_release comp_long_prefix comp_short
+ local regex_short regex_long regex_all regex_long_prefix
regex_all=( \( "$@" \) )
--- orig/Completion/Debian/Type/_deb_packages
+++ mod/Completion/Debian/Type/_deb_packages
@@ -103,6 +103,8 @@
_deb_packages_update_$pkgset
+ typeset -gH $cachevar
+
_tags packages && compadd "$expl[@]" - "${(@P)cachevar}"
}
--- orig/Completion/Unix/Command/_mount
+++ mod/Completion/Unix/Command/_mount
@@ -40,7 +40,11 @@
# 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
--- orig/Completion/Unix/Command/_subversion
+++ mod/Completion/Unix/Command/_subversion
@@ -63,7 +63,7 @@
local cmd
if (( ! $+_svn_cmds )); then
- typeset -gA _svn_cmds
+ typeset -A _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]//[(),]}// /:}}:}
)
next reply other threads:[~2005-04-23 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-23 20:19 Tobias Gruetzmacher [this message]
2005-04-24 0:23 ` Bart Schaefer
2005-04-24 12:15 ` Tobias Gruetzmacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050423201944.GA23939@portfolio16.de \
--to=tobias@portfolio16.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).