zsh func updates

This commit is contained in:
Jason Swank
2026-03-13 09:19:28 -04:00
parent def08842a2
commit 8ef76de5a1
3 changed files with 10 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
aws-get-bedrock-profile () {
profile_arn=$(aws bedrock list-inference-profiles \
profile_id=$(aws bedrock list-inference-profiles \
| jq -r '.inferenceProfileSummaries
| map(select(.inferenceProfileId | startswith("us.")))
| sort_by(.inferenceProfileName)
| .[]
| [.inferenceProfileArn, .inferenceProfileName, .description]
| [.inferenceProfileId, .inferenceProfileName, .description]
| @tsv' \
| fzf \
--header="$(printf '%-30s\t%s\n' 'NAME' 'DESCRIPTION')" \
@@ -12,6 +12,6 @@ aws-get-bedrock-profile () {
--delimiter='\t' \
--with-nth=2,3 \
| awk '{print $1}')
[[ -z "$profile_arn" ]] && return 1
echo "$profile_arn"
[[ -z "$profile_id" ]] && return 1
echo "$profile_id"
}

View File

@@ -0,0 +1,3 @@
gcloud-login() {
gcloud auth login --update-adc
}