rclone/docs/content/commands/rclone_completion_bash.md

50 lines
1.1 KiB
Markdown
Raw Normal View History

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