"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmd: Fix tab-completion for remotes with underscores in their names
Six2114fd8f2677
diff --git a/cmd/help.go b/cmd/help.goindex 066963fff..3bbe191ec 100644--- a/cmd/help.go+++ b/cmd/help.go@@ -45,7 +45,7 @@ __rclone_custom_func() {else__rclone_init_completion -n : || returnfi- if [[ $cur =~ ^[[:alnum:]]*$ ]]; then+ if [[ $cur =~ ^[[:alnum:]_]*$ ]]; thenlocal remotewhile IFS= read -r remote; do[[ $remote != $cur* ]] || COMPREPLY+=("$remote")@@ -54,7 +54,7 @@ __rclone_custom_func() {local paths=("$cur"*)[[ ! -f ${paths[0]} ]] || COMPREPLY+=("${paths[@]}")fi- elif [[ $cur =~ ^[[:alnum:]]+: ]]; then+ elif [[ $cur =~ ^[[:alnum:]_]+: ]]; thenlocal path=${cur#*:}if [[ $path == */* ]]; thenlocal prefix=${path%/*}