mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Add zsh completion instructions (fix #1420)
This commit is contained in:
parent
b313c8b46a
commit
0c7823b4a5
1 changed files with 14 additions and 1 deletions
|
|
@ -417,7 +417,20 @@ Completion of plugin commands only works for those plugins
|
|||
that were enabled when running ``beet completion``. If you add a plugin
|
||||
later on you will want to re-generate the script.
|
||||
|
||||
If you use zsh, take a look instead at the included `completion script`_.
|
||||
zsh
|
||||
```
|
||||
|
||||
If you use zsh, take a look at the included `completion script`_.
|
||||
|
||||
Another approach is to use zsh's bash completion compatibility. This snippet
|
||||
defines some bash-specific functions to make this work without errors::
|
||||
|
||||
autoload bashcompinit
|
||||
bashcompinit
|
||||
_get_comp_words_by_ref() { :; }
|
||||
compopt() { :; }
|
||||
_filedir() { :; }
|
||||
eval "$(beet completion)"
|
||||
|
||||
.. _completion script: https://github.com/sampsyo/beets/blob/master/extra/_beet
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue