I use cloud storage (eg gcs, s3) in addition to the local file system for data analysis.
My question is: are there tools that enable tab completion (in a shell environment) for file paths or URIs that aren't on local, mounted file systems? Eg for a file URI like gs://path/to/file.txt, I'd like to have tab completion when typing part of the path.
Note: I don't want to use FUSE (or mount a file system or volume in some way). I'm wondering if there are bash or zsh extensions that enable this functionality for non-file-system URIs, presumably with API calls in the background or something.
gcloud interactiveshell has auto-complete and auto prompting for any command that has a manual page, including thegcloud,bq,gsutil, andkubectlcommand-line tools.To enable the
gcloudinteractive shell:gcloud betacomponents first by running the commandgcloud components install beta.gcloud beta interactiveto enter gcloud interactive mode.You can now use the
tabto complete a file path or resource assignmentCheck this link for the official documentation of gcloud auto-complete.