# If not running interactively, don't do anything
[ -z "$PS1" ] && return

function source-file {
    file="$1"
    if [[ -f "$file" ]]; then
        . "$file"
    fi
}

source-file /etc/bash_completion
source-file ~/.bash/colors
source-file ~/.bash/aliases
source-file ~/.bash/functions
source-file ~/.bash/git-flow-completion
source-file ~/.bash/path
source-file ~/.bash/environment
source-file ~/.bash/prompt
source-file ~/opt/bash/env

unset -f source-file