2023-01-05 17:22:50 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-07-07 09:46:25 +00:00
|
|
|
# # shellcheck disable=SC2046,SC1091,SC2155
|
2023-01-05 17:22:50 +00:00
|
|
|
|
|
|
|
# Stage 0: Source dotenv stuff from homedir
|
|
|
|
source "$HOME/.env"
|
|
|
|
if [[ -f "$HOME/.env.local" ]]; then
|
|
|
|
source "$HOME/.env.local"
|
2024-07-07 09:46:25 +00:00
|
|
|
export LOCAL_DOTENV_LOADED=true
|
2023-01-05 17:22:50 +00:00
|
|
|
fi
|
|
|
|
|
2023-10-21 01:08:39 +00:00
|
|
|
if [[ $TERMUX ]]; then
|
|
|
|
export SSH_AGENT_=todo
|
|
|
|
elif command -v keychain >> /dev/null; then
|
2024-07-07 09:46:25 +00:00
|
|
|
export KEYCHAIN_PATH=$(command -v keychain)
|
2023-10-21 01:08:39 +00:00
|
|
|
eval $(keychain --agents gpg,ssh --eval)
|
|
|
|
fi
|
2023-01-19 11:22:37 +00:00
|
|
|
|
2023-10-21 01:08:39 +00:00
|
|
|
# how about detecting local configs
|
|
|
|
if [ -f "$HOME/.config/localconfig.env" ]; then
|
|
|
|
. "$HOME/.config/localconfig.env"
|
|
|
|
fi
|
2023-01-19 11:22:37 +00:00
|
|
|
|
2024-07-07 09:46:25 +00:00
|
|
|
# # shellcheck source=./.bashrc
|
|
|
|
source ./.bashrc
|