gcloud command line toolのインストールで少し詰まった


簡潔にいうとパスが通らなかったメモ

##とりあえず

 Quick Startをみて
https://cloud.google.com/sdk/#Quick_Start

```
curl https://sdk.cloud.google.com | bash
```
を実行します。
対話形式でインストールされます。

```
$ curl https://sdk.cloud.google.com | bash      
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   425    0   425    0     0    475      0 --:--:-- --:--:-- --:--:--   475
Downloading Google Cloud SDK install script: https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash
######################################################################## 100.0%
Running install script from: /var/folders/p2/m_drpl6s76d21shvl3h4njnh0000gn/T/tmp.XXXXXXXXXX.wpv2waof/install_google_cloud_sdk.bash
curl -# -f https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
######################################################################## 100.0%

Directory to extract under (this will create a directory google-cloud-sdk) (/Users/ryousuke): 
tar -C /Users/ryousuke -xvf /var/folders/p2/m_drpl6s76d21shvl3h4njnh0000gn/T/tmp.XXXXXXXXXX.pTTVn0Qv/google-cloud-sdk.tar.gz
x google-cloud-sdk/
x google-cloud-sdk/help/
x google-cloud-sdk/help/text.long/
x google-cloud-sdk/help/text.long/gcloud_components_update
x google-cloud-sdk/help/text.long/gcloud_components_restore
x google-cloud-sdk/help/text.long/gcloud_components_repositories_remove
x google-cloud-sdk/help/text.long/gcloud_components_repositories_list
x google-cloud-sdk/help/text.long/gcloud_components_repositories_add
x google-cloud-sdk/help/text.long/gcloud_components_repositories
x google-cloud-sdk/help/text.long/gcloud_components_remove
x google-cloud-sdk/help/text.long/gcloud_components_list
x google-cloud-sdk/help/text.long/gcloud_components
x google-cloud-sdk/help/text.long/gcloud_auth_revoke
x google-cloud-sdk/help/text.long/gcloud_auth_print-refresh-token
x google-cloud-sdk/help/text.long/gcloud_auth_print-access-token
x google-cloud-sdk/help/text.long/gcloud_auth_login
x google-cloud-sdk/help/text.long/gcloud_auth_list
x google-cloud-sdk/help/text.long/gcloud_auth_git-helper
x google-cloud-sdk/help/text.long/gcloud_auth_activate-service-account
x google-cloud-sdk/help/text.long/gcloud_auth_activate-refresh-token
x google-cloud-sdk/help/text.long/gcloud_auth
x google-cloud-sdk/help/text.long/gcloud_version
x google-cloud-sdk/help/text.long/gcloud_init
x google-cloud-sdk/help/text.long/gcloud_info
x google-cloud-sdk/help/text.long/gcloud_help
x google-cloud-sdk/help/text.long/gcloud
x google-cloud-sdk/help/text.long/gcloud_config_unset
x google-cloud-sdk/help/text.long/gcloud_config_set
x google-cloud-sdk/help/text.long/gcloud_config_list
x google-cloud-sdk/help/text.long/gcloud_config
x google-cloud-sdk/help/man/
x google-cloud-sdk/help/man/man1/
x google-cloud-sdk/help/man/man1/gcloud_components_update.1
x google-cloud-sdk/help/man/man1/gcloud_components_restore.1
x google-cloud-sdk/help/man/man1/gcloud_components_repositories_remove.1
x google-cloud-sdk/help/man/man1/gcloud_components_repositories_list.1
x google-cloud-sdk/help/man/man1/gcloud_components_repositories_add.1
x google-cloud-sdk/help/man/man1/gcloud_components_repositories.1
x google-cloud-sdk/help/man/man1/gcloud_components_remove.1
x google-cloud-sdk/help/man/man1/gcloud_components_list.1
x google-cloud-sdk/help/man/man1/gcloud_components.1
x google-cloud-sdk/help/man/man1/gcloud_auth_revoke.1
x google-cloud-sdk/help/man/man1/gcloud_auth_print-refresh-token.1
x google-cloud-sdk/help/man/man1/gcloud_auth_print-access-token.1
x google-cloud-sdk/help/man/man1/gcloud_auth_login.1
x google-cloud-sdk/help/man/man1/gcloud_auth_list.1
x google-cloud-sdk/help/man/man1/gcloud_auth_git-helper.1
x google-cloud-sdk/help/man/man1/gcloud_auth_activate-service-account.1
x google-cloud-sdk/help/man/man1/gcloud_auth_activate-refresh-token.1
x google-cloud-sdk/help/man/man1/gcloud_auth.1
x google-cloud-sdk/help/man/man1/gcloud_version.1
x google-cloud-sdk/help/man/man1/gcloud_init.1
x google-cloud-sdk/help/man/man1/gcloud_info.1
x google-cloud-sdk/help/man/man1/gcloud_help.1
x google-cloud-sdk/help/man/man1/gcloud.1
x google-cloud-sdk/help/man/man1/gcloud_config_unset.1
x google-cloud-sdk/help/man/man1/gcloud_config_set.1
x google-cloud-sdk/help/man/man1/gcloud_config_list.1
x google-cloud-sdk/help/man/man1/gcloud_config.1
x google-cloud-sdk/lib/
x google-cloud-sdk/lib/googlecloudapis/
x google-cloud-sdk/lib/googlecloudapis/apitools/
x google-cloud-sdk/lib/googlecloudapis/apitools/base/
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/util.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/transfer.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/stream_slice.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/list_pager.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/http_wrapper.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/extra_types.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/exceptions.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/encoding.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/credentials_lib.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/batch.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/base_cli.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/base_api.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/app2.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/cli.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/py/__init__.py
x google-cloud-sdk/lib/googlecloudapis/apitools/base/__init__.py
x google-cloud-sdk/lib/googlecloudapis/apitools/__init__.py
x google-cloud-sdk/lib/googlecloudapis/developerprojects/
x google-cloud-sdk/lib/googlecloudapis/developerprojects/v1/
x google-cloud-sdk/lib/googlecloudapis/developerprojects/v1/developerprojects_v1_messages.py
x google-cloud-sdk/lib/googlecloudapis/developerprojects/v1/developerprojects_v1_client.py
x google-cloud-sdk/lib/googlecloudapis/developerprojects/v1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/developerprojects/__init__.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta3/
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta3/sqladmin_v1beta3_messages.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta3/sqladmin_v1beta3_client.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta3/__init__.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta1/sqladmin_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta1/sqladmin_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/sqladmin/__init__.py
x google-cloud-sdk/lib/googlecloudapis/source/
x google-cloud-sdk/lib/googlecloudapis/source/v0/
x google-cloud-sdk/lib/googlecloudapis/source/v0/source_v0_messages.py
x google-cloud-sdk/lib/googlecloudapis/source/v0/source_v0_client.py
x google-cloud-sdk/lib/googlecloudapis/source/v0/__init__.py
x google-cloud-sdk/lib/googlecloudapis/source/__init__.py
x google-cloud-sdk/lib/googlecloudapis/resourceviews/
x google-cloud-sdk/lib/googlecloudapis/resourceviews/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/resourceviews/v1beta1/resourceviews_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/resourceviews/v1beta1/resourceviews_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/resourceviews/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/resourceviews/__init__.py
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/v1beta1/replicapoolupdater_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/v1beta1/replicapoolupdater_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/replicapoolupdater/__init__.py
x google-cloud-sdk/lib/googlecloudapis/replicapool/
x google-cloud-sdk/lib/googlecloudapis/replicapool/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/replicapool/v1beta1/replicapool_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/replicapool/v1beta1/replicapool_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/replicapool/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/replicapool/__init__.py
x google-cloud-sdk/lib/googlecloudapis/manager/
x google-cloud-sdk/lib/googlecloudapis/manager/v1beta2/
x google-cloud-sdk/lib/googlecloudapis/manager/v1beta2/manager_v1beta2_messages.py
x google-cloud-sdk/lib/googlecloudapis/manager/v1beta2/manager_v1beta2_client.py
x google-cloud-sdk/lib/googlecloudapis/manager/v1beta2/__init__.py
x google-cloud-sdk/lib/googlecloudapis/manager/__init__.py
x google-cloud-sdk/lib/googlecloudapis/dns/
x google-cloud-sdk/lib/googlecloudapis/dns/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/dns/v1beta1/dns_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/dns/v1beta1/dns_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/dns/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/dns/__init__.py
x google-cloud-sdk/lib/googlecloudapis/container/
x google-cloud-sdk/lib/googlecloudapis/container/v1beta1/
x google-cloud-sdk/lib/googlecloudapis/container/v1beta1/container_v1beta1_messages.py
x google-cloud-sdk/lib/googlecloudapis/container/v1beta1/container_v1beta1_client.py
x google-cloud-sdk/lib/googlecloudapis/container/v1beta1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/container/__init__.py
x google-cloud-sdk/lib/googlecloudapis/compute/
x google-cloud-sdk/lib/googlecloudapis/compute/v1/
x google-cloud-sdk/lib/googlecloudapis/compute/v1/compute_v1_messages.py
x google-cloud-sdk/lib/googlecloudapis/compute/v1/compute_v1_client.py
x google-cloud-sdk/lib/googlecloudapis/compute/v1/__init__.py
x google-cloud-sdk/lib/googlecloudapis/compute/__init__.py
x google-cloud-sdk/lib/googlecloudapis/bigquery/
x google-cloud-sdk/lib/googlecloudapis/bigquery/v2/
x google-cloud-sdk/lib/googlecloudapis/bigquery/v2/bigquery_v2_messages.py
x google-cloud-sdk/lib/googlecloudapis/bigquery/v2/bigquery_v2_client.py
x google-cloud-sdk/lib/googlecloudapis/bigquery/v2/__init__.py
x google-cloud-sdk/lib/googlecloudapis/bigquery/__init__.py
x google-cloud-sdk/lib/googlecloudapis/autoscaler/
x google-cloud-sdk/lib/googlecloudapis/autoscaler/v1beta2/
x google-cloud-sdk/lib/googlecloudapis/autoscaler/v1beta2/autoscaler_v1beta2_messages.py
x google-cloud-sdk/lib/googlecloudapis/autoscaler/v1beta2/autoscaler_v1beta2_client.py
x google-cloud-sdk/lib/googlecloudapis/autoscaler/v1beta2/__init__.py
x google-cloud-sdk/lib/googlecloudapis/autoscaler/__init__.py
x google-cloud-sdk/lib/googlecloudapis/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_repositories/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_repositories/index.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components/index.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth/index.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud/index.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_config/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_config/index.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_update.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_restore.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_repositories_remove.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_repositories_list.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_repositories_add.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_remove.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_components_list.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_revoke.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_print-refresh-token.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_print-access-token.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_login.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_list.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_git-helper.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_activate-service-account.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_auth_activate-refresh-token.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_version.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_init.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_info.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_help.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_config_unset.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_config_set.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_config_list.html
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/revoke.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/print_refresh_token.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/print_access_token.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/login.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/list.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/git_helper.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/activate_service_account.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/activate_refresh_token.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/repositories/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/repositories/remove.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/repositories/list.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/repositories/add.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/repositories/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/update.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/restore.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/remove.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/list.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/config/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/config/unset.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/config/set.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/config/list.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/config/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/version.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/init.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/help.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py
x google-cloud-sdk/lib/googlecloudsdk/gcloud/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/
x google-cloud-sdk/lib/googlecloudsdk/calliope/usage_text.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/tokenizer.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/shell.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/markdown.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/frontend.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/exceptions.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/base.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/arg_parsers.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/actions.py
x google-cloud-sdk/lib/googlecloudsdk/calliope/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/core/
x google-cloud-sdk/lib/googlecloudsdk/core/util/
x google-cloud-sdk/lib/googlecloudsdk/core/util/resource_registration.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/resource_printer.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/platforms.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/list_printer.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/files.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/execution_utils.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/edit.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/console_io.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/compat26.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/attrpath.py
x google-cloud-sdk/lib/googlecloudsdk/core/util/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/
x google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/snapshots.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/schemas.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/local_state.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/installers.py
x google-cloud-sdk/lib/googlecloudsdk/core/updater/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/gce.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/store.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/legacy.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/gitp2d.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/flow.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/oauth2_landing_error.html
x google-cloud-sdk/lib/googlecloudsdk/core/credentials/oauth2_landing.html
x google-cloud-sdk/lib/googlecloudsdk/core/config.json
x google-cloud-sdk/lib/googlecloudsdk/core/workspaces.py
x google-cloud-sdk/lib/googlecloudsdk/core/resources.py
x google-cloud-sdk/lib/googlecloudsdk/core/resolvers.py
x google-cloud-sdk/lib/googlecloudsdk/core/properties.py
x google-cloud-sdk/lib/googlecloudsdk/core/metrics.py
x google-cloud-sdk/lib/googlecloudsdk/core/log.py
x google-cloud-sdk/lib/googlecloudsdk/core/exceptions.py
x google-cloud-sdk/lib/googlecloudsdk/core/config.py
x google-cloud-sdk/lib/googlecloudsdk/core/cli.py
x google-cloud-sdk/lib/googlecloudsdk/core/__init__.py
x google-cloud-sdk/lib/googlecloudsdk/__init__.py
x google-cloud-sdk/lib/yaml/
x google-cloud-sdk/lib/yaml/LICENSE
x google-cloud-sdk/lib/yaml/tokens.py
x google-cloud-sdk/lib/yaml/serializer.py
x google-cloud-sdk/lib/yaml/scanner.py
x google-cloud-sdk/lib/yaml/resolver.py
x google-cloud-sdk/lib/yaml/representer.py
x google-cloud-sdk/lib/yaml/reader.py
x google-cloud-sdk/lib/yaml/parser.py
x google-cloud-sdk/lib/yaml/nodes.py
x google-cloud-sdk/lib/yaml/loader.py
x google-cloud-sdk/lib/yaml/events.py
x google-cloud-sdk/lib/yaml/error.py
x google-cloud-sdk/lib/yaml/emitter.py
x google-cloud-sdk/lib/yaml/dumper.py
x google-cloud-sdk/lib/yaml/cyaml.py
x google-cloud-sdk/lib/yaml/constructor.py
x google-cloud-sdk/lib/yaml/composer.py
x google-cloud-sdk/lib/yaml/__init__.py
x google-cloud-sdk/lib/websocket/
x google-cloud-sdk/lib/websocket/LICENSE
x google-cloud-sdk/lib/websocket/__init__.py
x google-cloud-sdk/lib/uritemplate/
x google-cloud-sdk/lib/uritemplate/LICENSE
x google-cloud-sdk/lib/uritemplate/uritemplate.py
x google-cloud-sdk/lib/uritemplate/__init__.py
x google-cloud-sdk/lib/socks/
x google-cloud-sdk/lib/socks/LICENSE
x google-cloud-sdk/lib/socks/__init__.py
x google-cloud-sdk/lib/six/
x google-cloud-sdk/lib/six/LICENSE
x google-cloud-sdk/lib/six/__init__.py
x google-cloud-sdk/lib/requests/
x google-cloud-sdk/lib/requests/packages/
x google-cloud-sdk/lib/requests/packages/urllib3/
x google-cloud-sdk/lib/requests/packages/urllib3/util/
x google-cloud-sdk/lib/requests/packages/urllib3/util/url.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/timeout.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/ssl_.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/response.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/request.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/connection.py
x google-cloud-sdk/lib/requests/packages/urllib3/util/__init__.py
x google-cloud-sdk/lib/requests/packages/urllib3/packages/
x google-cloud-sdk/lib/requests/packages/urllib3/packages/ssl_match_hostname/
x google-cloud-sdk/lib/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py
x google-cloud-sdk/lib/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py
x google-cloud-sdk/lib/requests/packages/urllib3/packages/six.py
x google-cloud-sdk/lib/requests/packages/urllib3/packages/ordered_dict.py
x google-cloud-sdk/lib/requests/packages/urllib3/packages/__init__.py
x google-cloud-sdk/lib/requests/packages/urllib3/contrib/
x google-cloud-sdk/lib/requests/packages/urllib3/contrib/pyopenssl.py
x google-cloud-sdk/lib/requests/packages/urllib3/contrib/ntlmpool.py
x google-cloud-sdk/lib/requests/packages/urllib3/contrib/__init__.py
x google-cloud-sdk/lib/requests/packages/urllib3/response.py
x google-cloud-sdk/lib/requests/packages/urllib3/request.py
x google-cloud-sdk/lib/requests/packages/urllib3/poolmanager.py
x google-cloud-sdk/lib/requests/packages/urllib3/filepost.py
x google-cloud-sdk/lib/requests/packages/urllib3/fields.py
x google-cloud-sdk/lib/requests/packages/urllib3/exceptions.py
x google-cloud-sdk/lib/requests/packages/urllib3/connectionpool.py
x google-cloud-sdk/lib/requests/packages/urllib3/connection.py
x google-cloud-sdk/lib/requests/packages/urllib3/_collections.py
x google-cloud-sdk/lib/requests/packages/urllib3/__init__.py
x google-cloud-sdk/lib/requests/packages/chardet/
x google-cloud-sdk/lib/requests/packages/chardet/utf8prober.py
x google-cloud-sdk/lib/requests/packages/chardet/universaldetector.py
x google-cloud-sdk/lib/requests/packages/chardet/sjisprober.py
x google-cloud-sdk/lib/requests/packages/chardet/sbcsgroupprober.py
x google-cloud-sdk/lib/requests/packages/chardet/sbcharsetprober.py
x google-cloud-sdk/lib/requests/packages/chardet/mbcssm.py
x google-cloud-sdk/lib/requests/packages/chardet/mbcsgroupprober.py
x google-cloud-sdk/lib/requests/packages/chardet/mbcharsetprober.py
x google-cloud-sdk/lib/requests/packages/chardet/latin1prober.py
x google-cloud-sdk/lib/requests/packages/chardet/langthaimodel.py
x google-cloud-sdk/lib/requests/packages/chardet/langhungarianmodel.py
x google-cloud-sdk/lib/requests/packages/chardet/langhebrewmodel.py
x google-cloud-sdk/lib/requests/packages/chardet/langgreekmodel.py
x google-cloud-sdk/lib/requests/packages/chardet/langcyrillicmodel.py
x google-cloud-sdk/lib/requests/packages/chardet/langbulgarianmodel.py
x google-cloud-sdk/lib/requests/packages/chardet/jpcntx.py
x google-cloud-sdk/lib/requests/packages/chardet/jisfreq.py
x google-cloud-sdk/lib/requests/packages/chardet/hebrewprober.py
x google-cloud-sdk/lib/requests/packages/chardet/gb2312prober.py
x google-cloud-sdk/lib/requests/packages/chardet/gb2312freq.py
x google-cloud-sdk/lib/requests/packages/chardet/euctwprober.py
x google-cloud-sdk/lib/requests/packages/chardet/euctwfreq.py
x google-cloud-sdk/lib/requests/packages/chardet/euckrprober.py
x google-cloud-sdk/lib/requests/packages/chardet/euckrfreq.py
x google-cloud-sdk/lib/requests/packages/chardet/eucjpprober.py
x google-cloud-sdk/lib/requests/packages/chardet/escsm.py
x google-cloud-sdk/lib/requests/packages/chardet/escprober.py
x google-cloud-sdk/lib/requests/packages/chardet/cp949prober.py
x google-cloud-sdk/lib/requests/packages/chardet/constants.py
x google-cloud-sdk/lib/requests/packages/chardet/compat.py
x google-cloud-sdk/lib/requests/packages/chardet/codingstatemachine.py
x google-cloud-sdk/lib/requests/packages/chardet/charsetprober.py
x google-cloud-sdk/lib/requests/packages/chardet/charsetgroupprober.py
x google-cloud-sdk/lib/requests/packages/chardet/chardistribution.py
x google-cloud-sdk/lib/requests/packages/chardet/chardetect.py
x google-cloud-sdk/lib/requests/packages/chardet/big5prober.py
x google-cloud-sdk/lib/requests/packages/chardet/big5freq.py
x google-cloud-sdk/lib/requests/packages/chardet/__init__.py
x google-cloud-sdk/lib/requests/packages/__init__.py
x google-cloud-sdk/lib/requests/LICENSE
x google-cloud-sdk/lib/requests/utils.py
x google-cloud-sdk/lib/requests/test_requests.py
x google-cloud-sdk/lib/requests/structures.py
x google-cloud-sdk/lib/requests/status_codes.py
x google-cloud-sdk/lib/requests/setup.py
x google-cloud-sdk/lib/requests/sessions.py
x google-cloud-sdk/lib/requests/models.py
x google-cloud-sdk/lib/requests/hooks.py
x google-cloud-sdk/lib/requests/exceptions.py
x google-cloud-sdk/lib/requests/cookies.py
x google-cloud-sdk/lib/requests/compat.py
x google-cloud-sdk/lib/requests/certs.py
x google-cloud-sdk/lib/requests/auth.py
x google-cloud-sdk/lib/requests/api.py
x google-cloud-sdk/lib/requests/adapters.py
x google-cloud-sdk/lib/requests/__init__.py
x google-cloud-sdk/lib/protorpc/
x google-cloud-sdk/lib/protorpc/wsgi/
x google-cloud-sdk/lib/protorpc/wsgi/util.py
x google-cloud-sdk/lib/protorpc/wsgi/service.py
x google-cloud-sdk/lib/protorpc/wsgi/__init__.py
x google-cloud-sdk/lib/protorpc/webapp/
x google-cloud-sdk/lib/protorpc/webapp/google_imports.py
x google-cloud-sdk/lib/protorpc/webapp/forms.py
x google-cloud-sdk/lib/protorpc/webapp/service_handlers.py
x google-cloud-sdk/lib/protorpc/webapp/__init__.py
x google-cloud-sdk/lib/protorpc/util.py
x google-cloud-sdk/lib/protorpc/transport.py
x google-cloud-sdk/lib/protorpc/remote.py
x google-cloud-sdk/lib/protorpc/registry.py
x google-cloud-sdk/lib/protorpc/protourlencode.py
x google-cloud-sdk/lib/protorpc/protojson.py
x google-cloud-sdk/lib/protorpc/protobuf.py
x google-cloud-sdk/lib/protorpc/non_sdk_imports.py
x google-cloud-sdk/lib/protorpc/messages.py
x google-cloud-sdk/lib/protorpc/message_types.py
x google-cloud-sdk/lib/protorpc/google_imports.py
x google-cloud-sdk/lib/protorpc/generate_python.py
x google-cloud-sdk/lib/protorpc/generate_proto.py
x google-cloud-sdk/lib/protorpc/generate.py
x google-cloud-sdk/lib/protorpc/definition.py
x google-cloud-sdk/lib/protorpc/descriptor.py
x google-cloud-sdk/lib/protorpc/__init__.py
x google-cloud-sdk/lib/protorpc/LICENSE
x google-cloud-sdk/lib/oauth2client/
x google-cloud-sdk/lib/oauth2client/LICENSE
x google-cloud-sdk/lib/oauth2client/xsrfutil.py
x google-cloud-sdk/lib/oauth2client/util.py
x google-cloud-sdk/lib/oauth2client/tools.py
x google-cloud-sdk/lib/oauth2client/service_account.py
x google-cloud-sdk/lib/oauth2client/old_run.py
x google-cloud-sdk/lib/oauth2client/multistore_file.py
x google-cloud-sdk/lib/oauth2client/locked_file.py
x google-cloud-sdk/lib/oauth2client/keyring_storage.py
x google-cloud-sdk/lib/oauth2client/gce.py
x google-cloud-sdk/lib/oauth2client/file.py
x google-cloud-sdk/lib/oauth2client/django_orm.py
x google-cloud-sdk/lib/oauth2client/crypt.py
x google-cloud-sdk/lib/oauth2client/clientsecrets.py
x google-cloud-sdk/lib/oauth2client/client.py
x google-cloud-sdk/lib/oauth2client/appengine.py
x google-cloud-sdk/lib/oauth2client/__init__.py
x google-cloud-sdk/lib/oauth2/
x google-cloud-sdk/lib/oauth2/LICENSE
x google-cloud-sdk/lib/oauth2/__init__.py
x google-cloud-sdk/lib/mimeparse/
x google-cloud-sdk/lib/mimeparse/LICENSE
x google-cloud-sdk/lib/mimeparse/__init__.py
x google-cloud-sdk/lib/httplib2/
x google-cloud-sdk/lib/httplib2/iri2uri.py
x google-cloud-sdk/lib/httplib2/cacerts.txt
x google-cloud-sdk/lib/httplib2/__init__.py
x google-cloud-sdk/lib/httplib2/LICENSE
x google-cloud-sdk/lib/docker/
x google-cloud-sdk/lib/docker/docker/
x google-cloud-sdk/lib/docker/docker/utils/
x google-cloud-sdk/lib/docker/docker/utils/utils.py
x google-cloud-sdk/lib/docker/docker/utils/__init__.py
x google-cloud-sdk/lib/docker/docker/unixconn/
x google-cloud-sdk/lib/docker/docker/unixconn/unixconn.py
x google-cloud-sdk/lib/docker/docker/unixconn/__init__.py
x google-cloud-sdk/lib/docker/docker/ssladapter/
x google-cloud-sdk/lib/docker/docker/ssladapter/ssladapter.py
x google-cloud-sdk/lib/docker/docker/ssladapter/__init__.py
x google-cloud-sdk/lib/docker/docker/auth/
x google-cloud-sdk/lib/docker/docker/auth/auth.py
x google-cloud-sdk/lib/docker/docker/auth/__init__.py
x google-cloud-sdk/lib/docker/docker/version.py
x google-cloud-sdk/lib/docker/docker/tls.py
x google-cloud-sdk/lib/docker/docker/errors.py
x google-cloud-sdk/lib/docker/docker/client.py
x google-cloud-sdk/lib/docker/docker/__init__.py
x google-cloud-sdk/lib/docker/LICENSE
x google-cloud-sdk/lib/docker/__init__.py
x google-cloud-sdk/lib/argcomplete/
x google-cloud-sdk/lib/argcomplete/scripts/
x google-cloud-sdk/lib/argcomplete/scripts/register-python-argcomplete
x google-cloud-sdk/lib/argcomplete/scripts/python-argcomplete-check-easy-install-script
x google-cloud-sdk/lib/argcomplete/scripts/activate-global-python-argcomplete
x google-cloud-sdk/lib/argcomplete/LICENSE
x google-cloud-sdk/lib/argcomplete/my_shlex.py
x google-cloud-sdk/lib/argcomplete/my_argparse.py
x google-cloud-sdk/lib/argcomplete/completers.py
x google-cloud-sdk/lib/argcomplete/__init__.py
x google-cloud-sdk/lib/apiclient/
x google-cloud-sdk/lib/apiclient/LICENSE
x google-cloud-sdk/lib/apiclient/__init__.py
x google-cloud-sdk/lib/apiclient/schema.py
x google-cloud-sdk/lib/apiclient/push.py
x google-cloud-sdk/lib/apiclient/oauth.py
x google-cloud-sdk/lib/apiclient/model.py
x google-cloud-sdk/lib/apiclient/mimeparse.py
x google-cloud-sdk/lib/apiclient/http.py
x google-cloud-sdk/lib/apiclient/errors.py
x google-cloud-sdk/lib/apiclient/discovery.py
x google-cloud-sdk/lib/apiclient/channel.py
x google-cloud-sdk/lib/gflags/
x google-cloud-sdk/lib/gflags/setup.py
x google-cloud-sdk/lib/gflags/setup.cfg
x google-cloud-sdk/lib/gflags/gflags_validators.py
x google-cloud-sdk/lib/gflags/gflags2man.py
x google-cloud-sdk/lib/gflags/__init__.py
x google-cloud-sdk/lib/gflags/README
x google-cloud-sdk/lib/gflags/PKG-INFO
x google-cloud-sdk/lib/gflags/NEWS
x google-cloud-sdk/lib/gflags/Makefile
x google-cloud-sdk/lib/gflags/MANIFEST.in
x google-cloud-sdk/lib/gflags/LICENSE
x google-cloud-sdk/lib/gflags/ChangeLog
x google-cloud-sdk/lib/gflags/COPYING
x google-cloud-sdk/lib/gflags/AUTHORS
x google-cloud-sdk/lib/argparse/
x google-cloud-sdk/lib/argparse/__init__.py
x google-cloud-sdk/lib/argparse/README.txt
x google-cloud-sdk/lib/argparse/NEWS.txt
x google-cloud-sdk/lib/argparse/LICENSE.txt
x google-cloud-sdk/lib/google/
x google-cloud-sdk/lib/google/apputils/
x google-cloud-sdk/lib/google/apputils/stopwatch.py
x google-cloud-sdk/lib/google/apputils/shellutil.py
x google-cloud-sdk/lib/google/apputils/setup_command.py
x google-cloud-sdk/lib/google/apputils/run_script_module.py
x google-cloud-sdk/lib/google/apputils/resources.py
x google-cloud-sdk/lib/google/apputils/file_util.py
x google-cloud-sdk/lib/google/apputils/debug.py
x google-cloud-sdk/lib/google/apputils/datelib.py
x google-cloud-sdk/lib/google/apputils/basetest.py
x google-cloud-sdk/lib/google/apputils/appcommands.py
x google-cloud-sdk/lib/google/apputils/app.py
x google-cloud-sdk/lib/google/apputils/__init__.py
x google-cloud-sdk/lib/google/apputils/LICENSE
x google-cloud-sdk/lib/google/__init__.py
x google-cloud-sdk/README
x google-cloud-sdk/LICENSE
x google-cloud-sdk/RELEASE_NOTES
x google-cloud-sdk/bin/
x google-cloud-sdk/bin/bootstrapping/
x google-cloud-sdk/bin/bootstrapping/.default_components
x google-cloud-sdk/bin/bootstrapping/setup.py
x google-cloud-sdk/bin/bootstrapping/print_env_info.py
x google-cloud-sdk/bin/bootstrapping/prerun.py
x google-cloud-sdk/bin/bootstrapping/install.py
x google-cloud-sdk/bin/bootstrapping/bootstrapping.py
x google-cloud-sdk/bin/bootstrapping/__init__.py
x google-cloud-sdk/install.sh
x google-cloud-sdk/install.bat
x google-cloud-sdk/completion.bash.inc
x google-cloud-sdk/completion.zsh.inc
x google-cloud-sdk/path.bash.inc
x google-cloud-sdk/path.zsh.inc
x google-cloud-sdk/.install/
x google-cloud-sdk/.install/core.snapshot.json
x google-cloud-sdk/.install/core.manifest
x google-cloud-sdk/.install/.download/

/Users/ryousuke/google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!


The Google Cloud SDK is currently in developer preview. To help improve the
quality of this product, we collect anonymized data on how the SDK is used.
You may choose to opt out of this collection now (by choosing 'N' at the below
prompt), or at any time in the future by running the following command:
    gcloud config set --scope=user disable_usage_reporting true

Do you want to help improve the Google Cloud SDK (Y/n)?  

This will install all the core command line tools necessary for working with
the Google Cloud Platform.


The following components will be installed:
    -------------------------------------------------------------------------------------------
    | BigQuery Command Line Tool                                        |     2.0.18 | < 1 MB |
    | BigQuery Command Line Tool (Platform Specific)                    |     2.0.18 | < 1 MB |
    | Cloud DNS Admin Command Line Interface                            | 2014.10.30 | < 1 MB |
    | Cloud SDK Core Command Line Tools                                 |          1 |        |
    | Cloud SDK Core Libraries (Platform Specific)                      | 2014.10.20 | < 1 MB |
    | Cloud SQL Admin Command Line Interface                            | 2014.10.30 | < 1 MB |
    | Cloud Storage Command Line Tool                                   |        4.6 | 2.1 MB |
    | Cloud Storage Command Line Tool (Platform Specific)               |        4.6 | < 1 MB |
    | Compute Engine Command Line Interface                             | 2014.10.30 | < 1 MB |
    | Compute Engine Command Line Tool (deprecated)                     |     1.16.5 | < 1 MB |
    | Compute Engine Command Line Tool (deprecated) (Platform Specific) |     1.16.5 | < 1 MB |
    -------------------------------------------------------------------------------------------

Creating update staging area...


Installing: BigQuery Command Line Tool ... Done
Installing: BigQuery Command Line Tool (Platform Specific) ... Done
Installing: Cloud DNS Admin Command Line Interface ... Done
Installing: Cloud SDK Core Command Line Tools ... Done
Installing: Cloud SDK Core Libraries (Platform Specific) ... Done
Installing: Cloud SQL Admin Command Line Interface ... Done
Installing: Cloud Storage Command Line Tool ... Done
Installing: Cloud Storage Command Line Tool (Platform Specific) ... Done
Installing: Compute Engine Command Line Interface ... Done
Installing: Compute Engine Command Line Tool (deprecated) ... Done
Installing: Compute Engine Command Line Tool (deprecated) (Platform Specific) ... Done

Creating backup and activating new installation...

Done!

The Google Cloud SDK installer will now prompt you to update an rc 
file to bring the Google Cloud CLIs into your environment.

Enter path to an rc file to update, or leave blank to use 
[/Users/ryousuke/.bash_profile]:  

Modify profile to update your $PATH? (Y/n)?  Y


Modify profile to enable bash completion? (Y/n)?  Y

Backing up [/Users/ryousuke/.bash_profile] to [/Users/ryousuke/.bash_profile.backup].
[/Users/ryousuke/.bash_profile] has been updated.
Start a new shell for the changes to take effect.


For more information on how to get started, please visit:
  https://developers.google.com/cloud/sdk/gettingstarted
```

ここでターミナル再起動して

```
$ gcloud 
```

と打っても `command not found`

・・・

インストール時の

```
Modify profile to update your $PATH? (Y/n)?  Y
Modify profile to enable bash completion? (Y/n)?  Y
```

で.bash_profileに自動で以下が追記されてます。

```
# The next line updates PATH for the Google Cloud SDK.
source '/Users/ryousuke/google-cloud-sdk/path.bash.inc'
# The next line enables bash completion for gcloud. 
source '/Users/ryousuke/google-cloud-sdk/completion.bash.inc'
```

ここをコメントアウトして以下を追記して

```
export PATH=/Users/ryousuke/google-cloud-sdk/bin:$PATH
```

ターミナル再起動でいけました。

```
gcloud -h
Usage: gcloud [optional flags] <group | command>
  group may be           auth | components | compute | config | dns | sql
  command may be         help | info | init | version

The *gcloud* CLI manages authentication, local configuration, developer
workflow, and interactions with the Google Cloud Platform APIs.

optional flags:
  --format FORMAT        Format for printed output.
  --help                 Display detailed help.
・
・
・
```



###zsh?

zsh使ってる場合って

```
curl https://sdk.cloud.google.com | zsh
```

でいけるんですかね?