1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-17 17:03:32 +01:00
dotfiles/profiles/main.sh
Eric Teunis de Boone d47333930f Made separate bashrc and profile which parse eachother.
So everythin is always defined in a bash shell
2016-09-26 18:11:51 +02:00

24 lines
402 B
Bash

DOTFILES="$HOME/.dotfiles"
#Add DOTFILES/bin/ to PATH
DOTBIN="$DOTFILES/bin"
if [ -d "$DOTBIN" ]; then
export PATH="$PATH:$DOTBIN"
fi
# Always try to use vi(m) if possible
export EDITOR="vi"
# Source Envs
DOTENVS="$HOME/.envs"
if [ -d "DOTENVS" ]; then
source "$DOTENVS/*.active"
fi
# Source Bashrc if BASH
if [ "$BASH" ] && [ -f $DOTFILES/bash/bashrc ]; then
source $DOTFILES/bash/bashrc
fi