mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-12 17:42:24 +00:00
Andrei Jiroh Halili
a6162c2c84
Going to migrate my Git author email address soon :) Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
33 lines
1 KiB
Bash
33 lines
1 KiB
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
|
|
|
|
export DOTFILES_BIN="${HOME}/bin"
|
|
# gopath should be on ~/.local/share/go to not fuck up with local insta>
|
|
# at ~/go if exists
|
|
export GOPATH="$HOME/.local/share/go"
|
|
# Context: https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.profi>
|
|
# and https://drewdevault.com/2021/08/06/goproxy-breaks-go.html
|
|
export GOPROXY=direct GOSUMDB=off
|
|
export PATH="${DOTFILES_BIN}:${GOPATH}/bin:${HOME}/.local/bin:${PATH}"
|
|
source .bashrc
|
|
|
|
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
|