rclone/docs/content/commands/rclone_completion_zsh.md

50 lines
1.1 KiB
Markdown
Raw Normal View History

2021-11-02 02:42:05 +11:00
---
title: "rclone completion zsh"
2023-06-30 23:11:17 +10:00
description: "Output zsh completion script for rclone."
2021-11-02 02:42:05 +11:00
slug: rclone_completion_zsh
url: /commands/rclone_completion_zsh/
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/completion/zsh/ and as part of making a release run "make commanddocs"
---
# rclone completion zsh
2023-06-30 23:11:17 +10:00
Output zsh completion script for rclone.
2021-11-02 02:42:05 +11:00
## Synopsis
2023-06-30 23:11:17 +10:00
Generates a zsh autocompletion script for rclone.
2021-11-02 02:42:05 +11:00
2023-06-30 23:11:17 +10:00
This writes to /usr/share/zsh/vendor-completions/_rclone by default so will
probably need to be run with sudo or as root, e.g.
2021-11-02 02:42:05 +11:00
2023-06-30 23:11:17 +10:00
sudo rclone genautocomplete zsh
2022-10-22 01:06:08 +11:00
2023-06-30 23:11:17 +10:00
Logout and login again to use the autocompletion scripts, or source
them directly
2022-10-22 01:06:08 +11:00
2023-06-30 23:11:17 +10:00
autoload -U compinit && compinit
2022-07-10 03:08:20 +10:00
2023-06-30 23:11:17 +10:00
If you supply a command line argument the script will be written
there.
2022-07-10 03:08:20 +10:00
2023-06-30 23:11:17 +10:00
If output_file is "-", then the output will be written to stdout.
2021-11-02 02:42:05 +11:00
```
2023-06-30 23:11:17 +10:00
rclone completion zsh [output_file] [flags]
2021-11-02 02:42:05 +11:00
```
## Options
```
2023-06-30 23:11:17 +10:00
-h, --help help for zsh
2021-11-02 02:42:05 +11:00
```
2023-08-02 19:02:38 +10:00
2021-11-02 02:42:05 +11:00
See the [global flags page](/flags/) for global options not listed here.
2023-08-02 19:02:38 +10:00
# SEE ALSO
2021-11-02 02:42:05 +11:00
2023-06-30 23:11:17 +10:00
* [rclone completion](/commands/rclone_completion/) - Output completion script for a given shell.
2021-11-02 02:42:05 +11:00