Compare commits
2 Commits
de876b706b
...
vim-colors
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ff86c280d | ||
|
|
ade5ab61ba |
2
zsh/.local/share/.gitignore
vendored
2
zsh/.local/share/.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
# ignore all files in the stew directory
|
||||
stew/*
|
||||
containers/
|
||||
direnv
|
||||
|
||||
@@ -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' \
|
||||
|
||||
Reference in New Issue
Block a user