2020-03-07 01:49:13 +01:00
|
|
|
# Define XDG_DOTFILES_DIR for easy access
|
|
|
|
export XDG_DOTFILES_DIR="$HOME/.dotfiles"
|
2016-09-26 18:11:51 +02:00
|
|
|
|
|
|
|
# Source main profile
|
2020-03-07 01:49:13 +01:00
|
|
|
[ -r "$XDG_DOTFILES_DIR/profiles/main.sh" ] && source "$XDG_DOTFILES_DIR/profiles/main.sh"
|
2016-09-26 18:11:51 +02:00
|
|
|
|
|
|
|
# Source machine specific profile
|
2020-03-07 01:49:13 +01:00
|
|
|
[ -r "$XDG_DOTFILES_DIR/profiles/$HOSTNAME.profile" ] && source "$XDG_DOTFILES_DIR/profiles/$HOSTNAME.profile"
|
2016-10-02 23:39:11 +02:00
|
|
|
|
|
|
|
# Always source a local profile
|
|
|
|
[ -r "$HOME/.profile.local" ] && source "$HOME/.profile.local"
|
2020-04-15 21:50:04 +02:00
|
|
|
|
|
|
|
# Also check in .local for a profile
|
|
|
|
[ -r "$HOME/.local/profile" ] && source "$HOME/.local/profile"
|