bashrc/.bashrc.d/02-secrets.bashrc

18 lines
524 B
Plaintext
Raw Normal View History

2023-03-18 12:49:08 +01:00
#!/usr/bin/env bash
# executed by bash(1) for non-login shells.
# ==============================
# SECRETS
# ==============================
# for the boop function
NTFYSERVER="ntfy.server.tld"
export NTFYBOOPSURL="https://${NTFYSERVER}/boops"
if command -v keyring 1> /dev/null && [[ -n "$DBUS_SESSION_BUS_ADDRESS" ]]; then
NTFYBOOPSTOKEN="$(keyring -b keyring.backends.SecretService.Keyring get ${NTFYSERVER} boop-token)"
export NTFYBOOPSTOKEN
fi
# locale city for scripts like meteo alias
export MYCITY="Some City"