# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

if [ "$BP_DEFAULT_APPS" = "yes" ]; then
    if [ "x86_64" = "$(uname -m)" ] ;then
	LIB="/usr/lib64"
    else
	LIB="/usr/lib"
    fi

    if [ -f /etc/blackPanther-default-apps.conf ]; then
	. /etc/blackPanther-default-apps.conf

	if [ -z `echo "$PATH" | grep "$LIB/blackPanther-default-apps/bin"` ]; then
    	    export PATH="$LIB/blackPanther-default-apps/bin:$PATH"
	fi

    elif [ -f /etc/blackPanther-default-serverapps.conf ]; then
	. /etc/blackPanther-default-serverapps.conf

	if [ -z `echo "$PATH" | grep "$LIB/blackPanther-default-serverapps/bin"` ]; then
    	    export PATH="$LIB/blackPanther-default-serverapps/bin:$PATH"
	fi
    
    fi
fi

export PATH
unset USERNAME

