diff --git a/docs/installation/from-binary.md b/docs/installation/from-binary.md index c6381986..ba8317bb 100644 --- a/docs/installation/from-binary.md +++ b/docs/installation/from-binary.md @@ -139,15 +139,15 @@ export GITEA_WORK_DIR=/var/lib/gitea/ cp gitea /usr/local/bin/gitea ``` -### Adding bash/zsh autocompletion (from 1.19) -A script to enable bash-completion can be found at [`contrib/autocompletion/bash_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/bash_autocomplete). This can be copied to `/usr/share/bash-completion/completions/gitea` -or sourced within your `.bashrc`. +### Adding shell autocompletion (from 1.25) -Similarly a script for zsh-completion can be found at [`contrib/autocompletion/zsh_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/zsh_autocomplete). This can be copied to `/usr/share/zsh/_gitea` or sourced within your -`.zshrc`. +Shell completion can be generated directly from binary with: +```sh +gitea completion +``` -YMMV and these scripts may need further improvement. +Supported values for `` are `bash`, `fish`, `pwsh` and `zsh`. Details on how to load the completion for your shell can be found in the completion command help. ## Running Gitea diff --git a/docs/installation/from-source.md b/docs/installation/from-source.md index c0f31588..624f5a45 100644 --- a/docs/installation/from-source.md +++ b/docs/installation/from-source.md @@ -178,15 +178,14 @@ LDFLAGS="-linkmode external -extldflags '-static' $LDFLAGS" TAGS="netgo osusergo This can be combined with `CC`, `GOOS`, and `GOARCH` as above. -### Adding bash/zsh autocompletion (from 1.19) +### Adding shell autocompletion (from 1.25) -A script to enable bash-completion can be found at [`contrib/autocompletion/bash_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/bash_autocomplete). This should be altered as appropriate and can be `source` in your `.bashrc` -or copied as `/usr/share/bash-completion/completions/gitea`. +Shell completion can be generated directly from binary with: +```sh +gitea completion +``` -Similarly, a script for zsh-completion can be found at [`contrib/autocompletion/zsh_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/zsh_autocomplete). This can be copied to `/usr/share/zsh/_gitea` or sourced within your -`.zshrc`. - -YMMV and these scripts may need further improvement. +Supported values for `` are `bash`, `fish`, `pwsh` and `zsh`. Details on how to load the completion for your shell can be found in the completion command help. ## Compile or cross-compile using Linux with Zig diff --git a/versioned_docs/version-1.25/installation/from-binary.md b/versioned_docs/version-1.25/installation/from-binary.md index c6381986..0f003ea8 100644 --- a/versioned_docs/version-1.25/installation/from-binary.md +++ b/versioned_docs/version-1.25/installation/from-binary.md @@ -139,15 +139,15 @@ export GITEA_WORK_DIR=/var/lib/gitea/ cp gitea /usr/local/bin/gitea ``` -### Adding bash/zsh autocompletion (from 1.19) +### Adding shell autocompletion (from 1.25) -A script to enable bash-completion can be found at [`contrib/autocompletion/bash_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/bash_autocomplete). This can be copied to `/usr/share/bash-completion/completions/gitea` -or sourced within your `.bashrc`. +Shell completion can be generated directly from binary with: +```sh +gitea completion +``` -Similarly a script for zsh-completion can be found at [`contrib/autocompletion/zsh_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/zsh_autocomplete). This can be copied to `/usr/share/zsh/_gitea` or sourced within your -`.zshrc`. +Supported values for `` are `bash`, `fish`, `pwsh` and `zsh`. Details on how to load the completion for your shell can be found in the completion command help. -YMMV and these scripts may need further improvement. ## Running Gitea diff --git a/versioned_docs/version-1.25/installation/from-source.md b/versioned_docs/version-1.25/installation/from-source.md index c0f31588..624f5a45 100644 --- a/versioned_docs/version-1.25/installation/from-source.md +++ b/versioned_docs/version-1.25/installation/from-source.md @@ -178,15 +178,14 @@ LDFLAGS="-linkmode external -extldflags '-static' $LDFLAGS" TAGS="netgo osusergo This can be combined with `CC`, `GOOS`, and `GOARCH` as above. -### Adding bash/zsh autocompletion (from 1.19) +### Adding shell autocompletion (from 1.25) -A script to enable bash-completion can be found at [`contrib/autocompletion/bash_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/bash_autocomplete). This should be altered as appropriate and can be `source` in your `.bashrc` -or copied as `/usr/share/bash-completion/completions/gitea`. +Shell completion can be generated directly from binary with: +```sh +gitea completion +``` -Similarly, a script for zsh-completion can be found at [`contrib/autocompletion/zsh_autocomplete`](https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/autocompletion/zsh_autocomplete). This can be copied to `/usr/share/zsh/_gitea` or sourced within your -`.zshrc`. - -YMMV and these scripts may need further improvement. +Supported values for `` are `bash`, `fish`, `pwsh` and `zsh`. Details on how to load the completion for your shell can be found in the completion command help. ## Compile or cross-compile using Linux with Zig