mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-10 00:59:38 +00:00
709c0d8c36
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
22 lines
551 B
Bash
22 lines
551 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Stage 0: Source dotenv stuff from homedir
|
|
source "$HOME/.env"
|
|
if [[ -f "$HOME/.env.local" ]]; then
|
|
source "$HOME/.env.local"
|
|
LOCAL_DOTENV_LOADED=true
|
|
fi
|
|
|
|
if [[ $TERMUX ]]; then
|
|
export SSH_AGENT_=todo
|
|
elif command -v keychain >> /dev/null; then
|
|
export KEYCHAIN_PATh=$(command -v keychain)
|
|
eval $(keychain --agents gpg,ssh --eval)
|
|
fi
|
|
|
|
# how about detecting local configs
|
|
if [ -f "$HOME/.config/localconfig.env" ]; then
|
|
. "$HOME/.config/localconfig.env"
|
|
fi
|
|
|
|
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
|