rclone/docs/content/commands/rclone_completion_bash.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

2021-11-01 15:42:05 +00:00
---
title: "rclone completion bash"
2023-06-30 13:11:17 +00:00
description: "Output bash completion script for rclone."
2021-11-01 15:42:05 +00:00
# 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 13:11:17 +00:00
Output bash completion script for rclone.
2021-11-01 15:42:05 +00:00
## Synopsis
2023-06-30 13:11:17 +00:00
Generates a bash shell autocompletion script for rclone.
2021-11-01 15:42:05 +00:00
2024-06-14 15:04:51 +00:00
By default, when run without any arguments,
2022-07-09 17:08:20 +00:00
2024-06-14 15:04:51 +00:00
rclone genautocomplete bash
2021-11-01 15:42:05 +00:00
2024-06-14 15:04:51 +00:00
the generated script will be written to
2022-07-09 17:08:20 +00:00
2024-06-14 15:04:51 +00:00
/etc/bash_completion.d/rclone
2022-07-09 17:08:20 +00:00
2024-06-14 15:04:51 +00:00
and so rclone will probably need to be run as root, or with sudo.
If you supply a path to a file as the command line argument, then
the generated script will be written to that file, in which case
you should not need root privileges.
2022-07-09 17:08:20 +00:00
2023-06-30 13:11:17 +00:00
If output_file is "-", then the output will be written to stdout.
2022-07-09 17:08:20 +00:00
2024-06-14 15:04:51 +00:00
If you have installed the script into the default location, you
can logout and login again to use the autocompletion script.
Alternatively, you can source the script directly
. /path/to/my_bash_completion_scripts/rclone
and the autocompletion functionality will be added to your
current shell.
2021-11-01 15:42:05 +00:00
```
2023-06-30 13:11:17 +00:00
rclone completion bash [output_file] [flags]
2021-11-01 15:42:05 +00:00
```
## Options
```
2023-06-30 13:11:17 +00:00
-h, --help help for bash
2021-11-01 15:42:05 +00:00
```
2023-08-02 09:02:38 +00:00
2021-11-01 15:42:05 +00:00
See the [global flags page](/flags/) for global options not listed here.
2023-08-02 09:02:38 +00:00
# SEE ALSO
2021-11-01 15:42:05 +00:00
2023-06-30 13:11:17 +00:00
* [rclone completion](/commands/rclone_completion/) - Output completion script for a given shell.
2021-11-01 15:42:05 +00:00