rclone/docs/content/commands/rclone_completion_bash.md

59 lines
1.4 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."
aliases:
- /commands/rclone_genautocomplete_bash/
2021-11-01 23:42:05 +08: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 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
2024-06-14 23:04:51 +08:00
By default, when run without any arguments,
2022-07-10 01:08:20 +08:00
2024-09-08 23:21:56 +08:00
rclone completion bash
2021-11-01 23:42:05 +08:00
2024-06-14 23:04:51 +08:00
the generated script will be written to
2022-07-10 01:08:20 +08:00
2024-06-14 23:04:51 +08:00
/etc/bash_completion.d/rclone
2022-07-10 01:08:20 +08:00
2024-06-14 23:04:51 +08: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-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
2024-06-14 23:04:51 +08: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 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
```
See the [global flags page](/flags/) for global options not listed here.
2024-09-08 23:21:56 +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