1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2025-06-18 05:06:38 +02:00

Made separate bashrc and profile which parse eachother.

So everythin is always defined in a bash shell
This commit is contained in:
Eric Teunis de Boone 2016-09-26 18:11:51 +02:00
parent 37123ca4cd
commit d47333930f
6 changed files with 22 additions and 32 deletions

9
profile.sh Normal file
View file

@ -0,0 +1,9 @@
# 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"