mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 00:51:34 +02:00
Version v1.63.0
This commit is contained in:
@ -1,52 +1,48 @@
|
||||
---
|
||||
title: "rclone completion bash"
|
||||
description: "Generate the autocompletion script for bash"
|
||||
description: "Output bash completion script for rclone."
|
||||
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
|
||||
|
||||
Generate the autocompletion script for bash
|
||||
Output bash completion script for rclone.
|
||||
|
||||
## 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.
|
||||
Generates a bash shell autocompletion script for rclone.
|
||||
|
||||
To load completions in your current shell session:
|
||||
This writes to /etc/bash_completion.d/rclone by default so will
|
||||
probably need to be run with sudo or as root, e.g.
|
||||
|
||||
source <(rclone completion bash)
|
||||
sudo rclone genautocomplete bash
|
||||
|
||||
To load completions for every new session, execute once:
|
||||
Logout and login again to use the autocompletion scripts, or source
|
||||
them directly
|
||||
|
||||
### Linux:
|
||||
. /etc/bash_completion
|
||||
|
||||
rclone completion bash > /etc/bash_completion.d/rclone
|
||||
If you supply a command line argument the script will be written
|
||||
there.
|
||||
|
||||
### macOS:
|
||||
|
||||
rclone completion bash > $(brew --prefix)/etc/bash_completion.d/rclone
|
||||
|
||||
You will need to start a new shell for this setup to take effect.
|
||||
If output_file is "-", then the output will be written to stdout.
|
||||
|
||||
|
||||
```
|
||||
rclone completion bash
|
||||
rclone completion bash [output_file] [flags]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
```
|
||||
-h, --help help for bash
|
||||
--no-descriptions disable completion descriptions
|
||||
-h, --help help for bash
|
||||
```
|
||||
|
||||
See the [global flags page](/flags/) for global options not listed here.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
* [rclone completion](/commands/rclone_completion/) - Generate the autocompletion script for the specified shell
|
||||
* [rclone completion](/commands/rclone_completion/) - Output completion script for a given shell.
|
||||
|
||||
|
Reference in New Issue
Block a user