
= Housekeeping, missing shrc.d and some changing in order. Most notably, split of editor aliases to separate file. + The missing .shrc.d files that were added: * keyboard mappings * bin.path - which includes cleanup * oh-my-posh compltions + edit-with-spacemacs ready for us, almost feature complete I still plan on making it resue existing frames is possible. + oh-my-posh config to include `systemctl is-system-running` to prompt when stat is not 'running' (mostly it will be shown when 'degraded')
21 lines
443 B
Text
21 lines
443 B
Text
function gcp_project() {
|
|
gcloud config get-value core/project 2> /dev/null
|
|
}
|
|
|
|
function gcp_get_project_id() {
|
|
gcloud projects list \
|
|
--filter="$1" \
|
|
--format="value(project_id)" \
|
|
2> /dev/null
|
|
}
|
|
|
|
function gcp_get_project_number() {
|
|
gcloud projects list \
|
|
--filter="project_id:$1" \
|
|
--format='value(project_number)' \
|
|
2> /dev/null
|
|
}
|
|
|
|
function gcp_region() {
|
|
gcloud config get-value compute/region 2> /dev/null
|
|
}
|