diff options
author | Niklas Haas <git@haasn.dev> | 2021-05-07 22:18:23 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-05-07 22:18:23 +0200 |
commit | ea89e813f730aaf4e97ea6c2b22c6a405d34955c (patch) | |
tree | 35a3f93b0c37fc00774b29f8074c49968f9a2c1a /demux/demux.c | |
parent | c3ebe7eabdbd41d496169bdcd98efff9d3f0bf87 (diff) | |
download | mpv-ea89e813f730aaf4e97ea6c2b22c6a405d34955c.tar.bz2 mpv-ea89e813f730aaf4e97ea6c2b22c6a405d34955c.tar.xz |
zsh completion: perform globbing on binary path
When trying to use completion for mpv binaries specified with some shell
glob, e.g. ~/dev/mpv/build/mpv, the current code doesn't substitute the
homedir prefix into the path name, resulting in runtime errors about
the file '~/dev/mpv/build/mpv' not being found.
The simple fixed is to use $~var instead of $var whenever expanding the
filename, which performs the same globbing that would otherwise be
performed when executing the command.
Diffstat (limited to 'demux/demux.c')
0 files changed, 0 insertions, 0 deletions