diff options
author | zeripath <art27@cantab.net> | 2023-02-21 17:32:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 12:32:24 -0500 |
commit | 43405c35f07d8f6fb7c177cf599e19090020527e (patch) | |
tree | ccf1758bd4098b523282585f5e8b26365b9fa027 /Dockerfile | |
parent | 4de5cd9f367fe73815b1c72ffc54a5118cc8e1d6 (diff) | |
download | gitea-43405c35f07d8f6fb7c177cf599e19090020527e.tar.gz gitea-43405c35f07d8f6fb7c177cf599e19090020527e.zip |
Add Bash and Zsh completion scripts (#22646)
This PR adds contrib scripts for bash and zsh completion.
Simply call:
```bash
source contrib/autocompletion/bash_autocomplete
```
or for Zsh:
```bash
source contrib/autocompletion/zsh_autocomplete
```
Signed-off-by: Andrew Thornton <art27@cantab.net>
---------
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile index 89f000882c..fad8ae1790 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,5 +64,7 @@ CMD ["/bin/s6-svscan", "/etc/s6"] COPY docker/root / COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini +COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh RUN chmod 755 /usr/bin/entrypoint /app/gitea/gitea /usr/local/bin/gitea /usr/local/bin/environment-to-ini RUN chmod 755 /etc/s6/gitea/* /etc/s6/openssh/* /etc/s6/.s6-svscan/* +RUN chmod 644 /etc/profile.d/gitea_bash_autocomplete.sh |