tide (fish prompt) installed
This commit is contained in:
parent
142fd7eaa4
commit
e83440486a
85 changed files with 2589 additions and 62 deletions
8
.config/fish/functions/_tide_item_gcloud.fish
Normal file
8
.config/fish/functions/_tide_item_gcloud.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
function _tide_item_gcloud
|
||||
set -q CLOUDSDK_CONFIG || set -l CLOUDSDK_CONFIG ~/.config/gcloud
|
||||
path is $CLOUDSDK_CONFIG/active_config &&
|
||||
read -l config <$CLOUDSDK_CONFIG/active_config &&
|
||||
path is $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
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue