dotfiles/.bash_login
Andrei Jiroh Halili ab3e569190
chore(bash): update shellrc files as usual
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
2024-07-07 17:46:25 +08:00

24 lines
590 B
Bash

#!/usr/bin/env bash
# # shellcheck disable=SC2046,SC1091,SC2155
# Stage 0: Source dotenv stuff from homedir
source "$HOME/.env"
if [[ -f "$HOME/.env.local" ]]; then
source "$HOME/.env.local"
export 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
# # shellcheck source=./.bashrc
source ./.bashrc