2020-03-07 01:49:13 +01:00
|
|
|
# Define XDG_DOTFILES_DIR for easy access
|
|
|
|
export XDG_DOTFILES_DIR="$HOME/.dotfiles"
|
2020-11-20 15:23:42 +01:00
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
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
|
|
|
|
2022-02-11 14:00:06 +01:00
|
|
|
# Use the local(ly linked) profile.private
|
|
|
|
[ -r "$HOME/.local/profile.private" ] && source "$HOME/.local/profile.private"
|
|
|
|
|
2020-04-15 21:50:04 +02:00
|
|
|
# Also check in .local for a profile
|
|
|
|
[ -r "$HOME/.local/profile" ] && source "$HOME/.local/profile"
|