summaryrefslogtreecommitdiffstats
path: root/TOOLS/zsh.pl
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/zsh.pl')
-rwxr-xr-xTOOLS/zsh.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl
index 4f23b934b3..c9943b1000 100755
--- a/TOOLS/zsh.pl
+++ b/TOOLS/zsh.pl
@@ -122,6 +122,12 @@ $vf_str
$profile_comp
;;
+ files)
+ compset -P '*,'
+ compset -S ',*'
+ _files -r ',/ \\t\\n\\-' && rc=0
+ ;;
+
mfiles)
local expl
_tags files urls
@@ -177,6 +183,7 @@ sub parse_opts {
$entry .= '->vf' if ($1 eq '--vf');
$entry .= '->profiles' if ($1 eq '--profile');
$entry .= '->profile' if ($1 eq '--show-profile');
+ $entry .= '->files' if ($line =~ /\[file\]/);
}
push @list, $entry