mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-08 14:43:11 +00:00
feat(bashrc): add global bashrc stuff
Next, I'll import host-specifics then later this afternoon. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
ec76f58b37
commit
b0ee16d81f
6 changed files with 144 additions and 0 deletions
21
.bash_login
Normal file
21
.bash_login
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/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
|
||||
source "$HOME/.env.local"
|
||||
export LOCAL_DOTENV_LOADED=true
|
||||
fi
|
||||
|
||||
# Stage 1: Load global bashrc
|
||||
if [[ -f "$HOME/.bashrc" ]]; then
|
||||
source "$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
# Stage 2: Machine specifcs
|
||||
if [[ -f $HOST_SPECIFIC_BASHRC ]]; then
|
||||
source "$HOST_SPECIFIC_BASHRC_PATH"
|
||||
export HOST_SPECIFIC_BASHRC_LOADED=true
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue