~xdavidwu/dotfiles

eaa914ce5b926fbbb7ac0906f35f1b5107ef794a — Pinghao Wu 24 days ago b742951 master
bash: add helper func for k8s secrets
1 files changed, 4 insertions(+), 0 deletions(-)

M .bashrc
M .bashrc => .bashrc +4 -0
@@ 59,6 59,10 @@ sleepto() {
	sleep $(($(date --date="$1" +%s) - $EPOCHSECONDS))
}

desecret() {
	yq '.data |= (to_entries | map(.value |= @base64d) | from_entries)'
}

# application envs
export GPG_TTY=$(tty 2>/dev/null)