aboutsummaryrefslogtreecommitdiffhomepage
path: root/Manual.md
diff options
context:
space:
mode:
authorÉrico Rolim <erico.erc@gmail.com>2020-06-13 18:45:12 -0300
committerDanh Doan <congdanhqx@gmail.com>2020-07-28 04:24:40 +0000
commitd5ca0392786de1495bb3219bec19ca3887a678a3 (patch)
tree370633f4761200180f510ff0d1e388c985124ce2 /Manual.md
parentmlt: fix build w/ qt5-5.15.0 (QPainterPath) (diff)
common/environment/setup/install.sh: add vcompletion.
Install function for installing shell completions in the appropriate place according to the shell used.
Diffstat (limited to 'Manual.md')
-rw-r--r--Manual.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/Manual.md b/Manual.md
index 5b49dc5ddd4..a2e43334b9d 100644
--- a/Manual.md
+++ b/Manual.md
@@ -337,6 +337,13 @@ The following functions are defined by `xbps-src` and can be used on any templat
Note that vsed will call the sed command for every regex specified against
every file specified, in the order that they are given.
+- *vcompletion()* `<file> <shell> [<command>]`
+
+ Installs shell completion from `file` for `command`, in the correct location
+ and with the appropriate filename for `shell`. If `command` isn't specified,
+ it will default to `pkgname`. The `shell` argument can be one of `bash`,
+ `fish` or `zsh`.
+
> Shell wildcards must be properly quoted, Example: `vmove "usr/lib/*.a"`.
<a id="global_vars"></a>