rclone/docs/content/commands/rclone_completion_bash.md

1.4 KiB

title description aliases
rclone completion bash Output bash completion script for rclone.
/commands/rclone_genautocomplete_bash/

rclone completion bash

Output bash completion script for rclone.

Synopsis

Generates a bash shell autocompletion script for rclone.

By default, when run without any arguments,

rclone genautocomplete bash

the generated script will be written to

/etc/bash_completion.d/rclone

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.

If output_file is "-", then the output will be written to stdout.

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.

rclone completion bash [output_file] [flags]

Options

  -h, --help   help for bash

See the global flags page for global options not listed here.

SEE ALSO