Update shellrc files as well as global git config

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-10-21 09:08:39 +08:00
parent 9be0fe70db
commit 709c0d8c36
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
6 changed files with 31 additions and 17 deletions

View file

@ -1,7 +1,5 @@
#!/usr/bin/env bash
export HOST_SPECIFIC_BASHRC_PATH="$HOME/.config/$HOSTNAME.bashrc"
# Stage 0: Source dotenv stuff from homedir
source "$HOME/.env"
if [[ -f "$HOME/.env.local" ]]; then
@ -9,12 +7,16 @@ if [[ -f "$HOME/.env.local" ]]; then
LOCAL_DOTENV_LOADED=true
fi
# Stage 1: Source the ~/.profile
source "$HOME/.profile"
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
# Added by Toolbox App
export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"
# 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
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi # added by Nix installer