Compare commits
5 Commits
87c3bed2e1
...
de876b706b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de876b706b | ||
|
|
71140395b0 | ||
|
|
62e1d0117a | ||
|
|
c0662c5044 | ||
|
|
8e86d82578 |
2
zsh/.local/share/.gitignore
vendored
2
zsh/.local/share/.gitignore
vendored
@@ -1,4 +1,2 @@
|
||||
# ignore all files in the stew directory
|
||||
stew/*
|
||||
containers/
|
||||
direnv
|
||||
|
||||
@@ -3,9 +3,7 @@ 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);
|
||||
@@ -13,7 +11,6 @@ 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