Skip to content

Commit 2cc77ab

Browse files
committed
Add gcloud bin path and completion to bash profile
- Updated installation script to add gcloud bin path to user’s bash profile to ensure gcloud and its binary components are accessible from the command line and bash completion to improve usability by allowing users to auto-complete commands, flags, and resource names. - Removed linking unnecessary binary components individually since gcloud bin path will now be accessible.
1 parent 226ed46 commit 2cc77ab

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Casks/g/gcloud-cli.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@
2525
args: [
2626
"--quiet",
2727
"--usage-reporting", "false",
28-
"--bash-completion", "false",
29-
"--path-update", "false",
30-
"--rc-path", "false",
28+
"--bash-completion", "true",
29+
"--path-update", "true",
3130
"--install-python", "false",
3231
"--update-installed-components"
3332
],
3433
}
3534
binary "google-cloud-sdk/bin/bq"
36-
binary "google-cloud-sdk/bin/docker-credential-gcloud"
3735
binary "google-cloud-sdk/bin/gcloud"
38-
binary "google-cloud-sdk/bin/git-credential-gcloud.sh", target: "git-credential-gcloud"
3936
binary "google-cloud-sdk/bin/gsutil"
4037
bash_completion "google-cloud-sdk/completion.bash.inc", target: "google-cloud-sdk"
4138
zsh_completion "google-cloud-sdk/completion.zsh.inc", target: "_google_cloud_sdk"
@@ -47,7 +44,7 @@
4744
end
4845

4946
postflight do
50-
# HACK: Allow existing shell profiles to work by linking the current version to the `latest` directory.
47+
# Allow existing shell profiles to work by linking the current version to the `latest` directory.
5148
unless (latest_path = staged_path.dirname/"latest").directory?
5249
FileUtils.ln_s staged_path, latest_path, force: true
5350
end

0 commit comments

Comments
 (0)