mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 19:50:22 +03:00
Reformat gcloud item
This commit is contained in:
parent
cca9fc9f82
commit
52268dd8f5
@ -1,8 +1,8 @@
|
|||||||
function _tide_item_gcloud
|
function _tide_item_gcloud
|
||||||
set -q CLOUDSDK_CONFIG || set -l CLOUDSDK_CONFIG ~/.config/gcloud
|
set -q CLOUDSDK_CONFIG || set -l CLOUDSDK_CONFIG ~/.config/gcloud
|
||||||
path is $CLOUDSDK_CONFIG/active_config \
|
path is $CLOUDSDK_CONFIG/active_config &&
|
||||||
&& read -l config <$CLOUDSDK_CONFIG/active_config \
|
read -l config <$CLOUDSDK_CONFIG/active_config &&
|
||||||
&& path is $CLOUDSDK_CONFIG/configurations/config_$config \
|
path is $CLOUDSDK_CONFIG/configurations/config_$config &&
|
||||||
&& string match -qr '^\s*project\s*=\s*(?<project>.*)' <$CLOUDSDK_CONFIG/configurations/config_$config \
|
string match -qr '^\s*project\s*=\s*(?<project>.*)' <$CLOUDSDK_CONFIG/configurations/config_$config &&
|
||||||
&& _tide_print_item gcloud $tide_gcloud_icon' ' $project
|
_tide_print_item gcloud $tide_gcloud_icon' ' $project
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user