homebrew-cask-versions/Casks/google-cloud-sdk.rb
Daniele Sluijters cf6b11e48c gcloud: Add fish instructions.
* Add the gcloud/bin directory to our path.
* Set up MANPATH so that fish_update_completions can generate completion
  files for it.
2015-03-09 13:27:28 +01:00

33 lines
1.1 KiB
Ruby

cask :v1 => 'google-cloud-sdk' do
version :latest
sha256 :no_check
url 'https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz'
name 'Google Cloud SDK'
homepage 'https://cloud.google.com/sdk/'
license :apache
tags :vendor => 'Google'
installer :script => 'google-cloud-sdk/install.sh',
:args => %w{--usage-reporting false --bash-completion false --path-update false --rc-path false},
:sudo => false
caveats do
"#{token} is installed at #{staged_path}/#{token}. Add your profile:
for bash users
source '#{staged_path}/#{token}/path.bash.inc'
source '#{staged_path}/#{token}/completion.bash.inc'
for zsh users
source '#{staged_path}/#{token}/path.zsh.inc'
source '#{staged_path}/#{token}/completion.zsh.inc'
for fish users
set fish_user_paths #{staged_path}/#{token}/bin
set -x MANPATH #{staged_path}/#{token}/help/man /usr/local/share/man /usr/share/man /opt/x11/share/man
Run fish_update_completions to generate completions for fish based on the man pages"
end
end