diff options
author | Philip Langdale <philipl@overt.org> | 2020-01-08 19:09:14 -0800 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2020-01-09 12:07:05 -0800 |
commit | 8b85b40b2fd77128da2503e90ed358605e3e2656 (patch) | |
tree | 09077373954176083e8524ff2f13a75d0defa44c /wscript_build.py | |
parent | 28609cc4980d7a3949d2cf964048cb20f3ab8d85 (diff) | |
download | mpv-8b85b40b2fd77128da2503e90ed358605e3e2656.tar.bz2 mpv-8b85b40b2fd77128da2503e90ed358605e3e2656.tar.xz |
bash completion: add initial implementation of bash completion
While we've had a zsh completion script for a while, we haven't had
one for bash. This one is reasonably comprehensive, although there are
improvements one could imagine for certain options.
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py index 3d901df3fb..bbce31dfea 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -737,6 +737,9 @@ def build(ctx): if ctx.env.ZSHDIR: ctx.install_as(ctx.env.ZSHDIR + '/_mpv', 'etc/_mpv.zsh') + if ctx.env.BASHDIR: + ctx.install_as(ctx.env.BASHDIR + '/mpv', 'etc/mpv.bash-completion') + ctx.install_files( ctx.env.DATADIR + '/applications', ['etc/mpv.desktop'] ) |