code.gitea.io/gitea@v1.21.7/contrib/autocompletion/README (about)

     1  Bash and Zsh completion
     2  =======================
     3  
     4  From within the gitea root run:
     5  
     6  ```bash
     7  source contrib/autocompletion/bash_autocomplete
     8  ```
     9  
    10  or for zsh run:
    11  
    12  ```bash
    13  source contrib/autocompletion/zsh_autocomplete
    14  ```
    15  
    16  These scripts will check if gitea is on the path and if so add autocompletion for `gitea`. Or if not autocompletion will work for `./gitea`.
    17  If gitea has been installed as a different program pass in the `PROG` environment variable to set the correct program name.