Compare commits

..

2 Commits

Author SHA1 Message Date
Jason Swank
4ff86c280d colorscheme + minor tweaks 2026-01-12 12:23:21 -05:00
Jason Swank
ade5ab61ba aws-get-secret: add comments 2026-01-10 22:44:07 +00:00
2 changed files with 5 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
# ignore all files in the stew directory
stew/*
containers/
direnv

View File

@@ -3,7 +3,9 @@ aws-get-secret () {
if [[ -z "$secret_id" ]]; then
secret_id=$(aws secretsmanager list-secrets \
# build a tsv w/ name and date
| jq -r '.SecretList | sort_by(.Name) | .[] | [.Name,.LastChangedDate] | @tsv' \
# convert to tsv w/ full name, truncated name, date (no timestamp)
| awk -F'\t' '{
full_name = $1;
truncated_name = substr($1,1,30);
@@ -11,6 +13,7 @@ aws-get-secret () {
# Output: full_name (for return), truncated_name (for display), date (for display)
printf "%s\t%-30s\t%s\n", full_name, truncated_name, date_parts[1]
}' \
# select via fzf, fields 2 & 3
| fzf \
--header="$(printf '%-30s\t%s\n' 'NAME' 'LAST_CHANGED_DATE')" \
--delimiter='\t' \