rclone/docs/content/commands/rclone_completion_bash.md

53 lines
1.3 KiB
Markdown
Raw Normal View History

2021-11-01 16:42:05 +01:00
---
title: "rclone completion bash"
2022-07-09 19:08:20 +02:00
description: "Generate the autocompletion script for bash"
2021-11-01 16:42:05 +01: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
2022-07-09 19:08:20 +02:00
Generate the autocompletion script for bash
2021-11-01 16:42:05 +01:00
## Synopsis
Generate the autocompletion script for the bash shell.
This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
2022-07-09 19:08:20 +02:00
source <(rclone completion bash)
2021-11-01 16:42:05 +01:00
To load completions for every new session, execute once:
2022-07-09 19:08:20 +02:00
### Linux:
rclone completion bash > /etc/bash_completion.d/rclone
### macOS:
2022-10-21 16:06:08 +02:00
rclone completion bash > $(brew --prefix)/etc/bash_completion.d/rclone
2021-11-01 16:42:05 +01:00
You will need to start a new shell for this setup to take effect.
2022-07-09 19:08:20 +02:00
2021-11-01 16:42:05 +01:00
```
rclone completion bash
```
## Options
```
-h, --help help for bash
--no-descriptions disable completion descriptions
```
See the [global flags page](/flags/) for global options not listed here.
## SEE ALSO
2022-07-09 19:08:20 +02:00
* [rclone completion](/commands/rclone_completion/) - Generate the autocompletion script for the specified shell
2021-11-01 16:42:05 +01:00