summaryrefslogtreecommitdiffstats
path: root/TOOLS/zsh.pl
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/zsh.pl')
-rwxr-xr-xTOOLS/zsh.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl
index 6bd2a02d42..5934bd1b4e 100755
--- a/TOOLS/zsh.pl
+++ b/TOOLS/zsh.pl
@@ -69,11 +69,17 @@ chomp $profile_comp;
my $tmpl = <<"EOS";
#compdef mpv
-# mpv zsh completion
+# For customization, see:
+# https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization
local curcontext="\$curcontext" state state_descr line
typeset -A opt_args
+# By default, don't complete URLs unless no files match
+local -a tag_order
+zstyle -a ":completion:*:*:$service:*" tag-order tag_order || \
+ zstyle ":completion:*:*:$service:*" tag-order '!urls'
+
local rc=1
_arguments -C -S \\