zsh func updates
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
aws-get-bedrock-profile () {
|
aws-get-bedrock-profile () {
|
||||||
profile_arn=$(aws bedrock list-inference-profiles \
|
profile_id=$(aws bedrock list-inference-profiles \
|
||||||
| jq -r '.inferenceProfileSummaries
|
| jq -r '.inferenceProfileSummaries
|
||||||
| map(select(.inferenceProfileId | startswith("us.")))
|
| map(select(.inferenceProfileId | startswith("us.")))
|
||||||
| sort_by(.inferenceProfileName)
|
| sort_by(.inferenceProfileName)
|
||||||
| .[]
|
| .[]
|
||||||
| [.inferenceProfileArn, .inferenceProfileName, .description]
|
| [.inferenceProfileId, .inferenceProfileName, .description]
|
||||||
| @tsv' \
|
| @tsv' \
|
||||||
| fzf \
|
| fzf \
|
||||||
--header="$(printf '%-30s\t%s\n' 'NAME' 'DESCRIPTION')" \
|
--header="$(printf '%-30s\t%s\n' 'NAME' 'DESCRIPTION')" \
|
||||||
@@ -12,6 +12,6 @@ aws-get-bedrock-profile () {
|
|||||||
--delimiter='\t' \
|
--delimiter='\t' \
|
||||||
--with-nth=2,3 \
|
--with-nth=2,3 \
|
||||||
| awk '{print $1}')
|
| awk '{print $1}')
|
||||||
[[ -z "$profile_arn" ]] && return 1
|
[[ -z "$profile_id" ]] && return 1
|
||||||
echo "$profile_arn"
|
echo "$profile_id"
|
||||||
}
|
}
|
||||||
|
|||||||
3
zsh/.local/share/zsh/functions/gcloud-login
Normal file
3
zsh/.local/share/zsh/functions/gcloud-login
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
gcloud-login() {
|
||||||
|
gcloud auth login --update-adc
|
||||||
|
}
|
||||||
@@ -15,6 +15,9 @@ export GOPATH=~/go
|
|||||||
|
|
||||||
export TZ=America/Kentucky/Louisville
|
export TZ=America/Kentucky/Louisville
|
||||||
|
|
||||||
|
export AWS_REGION=us-west-2
|
||||||
|
export REPO_OVERLAY_DIR=~/repos/repo-overlays/overlays
|
||||||
|
|
||||||
# doesn't work on arch for tmux
|
# doesn't work on arch for tmux
|
||||||
#path+=(~/bin)
|
#path+=(~/bin)
|
||||||
#path+=(~/.local/bin)
|
#path+=(~/.local/bin)
|
||||||
@@ -24,7 +27,6 @@ export TZ=America/Kentucky/Louisville
|
|||||||
export TMPDIR=/var/tmp
|
export TMPDIR=/var/tmp
|
||||||
|
|
||||||
export BROWSER=open_browser.sh
|
export BROWSER=open_browser.sh
|
||||||
export TF_PLUGIN_CACHE_DIR=~/.local/state/tofu
|
|
||||||
|
|
||||||
# With ghostty + tmux + nvim, having this autoset to 'truecolor' has a weird effect
|
# With ghostty + tmux + nvim, having this autoset to 'truecolor' has a weird effect
|
||||||
# unset COLORTERM
|
# unset COLORTERM
|
||||||
|
|||||||
Reference in New Issue
Block a user