1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00
dotfiles/profile.sh

12 lines
385 B
Bash
Raw Normal View History

# Define DOTFILES for easy access
DOTFILES="$HOME/.dotfiles"
# Source main profile
[ -r "$DOTFILES/profiles/main.sh" ] && source "$DOTFILES/profiles/main.sh"
# Source machine specific profile
[ -r "$DOTFILES/profiles/$HOSTNAME.profile" ] && source "$DOTFILES/profiles/$HOSTNAME.profile"
# Always source a local profile
[ -r "$HOME/.profile.local" ] && source "$HOME/.profile.local"