# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# --------------------------------------
# Run GIT configurations file 
# (you can comment me after first run!)
#if [ -f .git-configs-runme_before.sh ]; then
#	. .git-configs-runme_before.sh
#fi
# --------------------------------------

# ============================================================
# Additional configs to be used if you have any of these tools
# Just uncomment the desired ones and have fun!
if [ -d ~/android-studio/bin/ ]; then
    PATH="$PATH:~/android-studio/bin/"
fi

if [ -d ~/Android/Sdk/platform-tools/ ]; then
    PATH="$PATH:~/Android/Sdk/platform-tools/"
fi

if [ -d ~/Android/Sdk/tools/ ]; then
    PATH="$PATH:~/Android/Sdk/tools"
fi

if [ -d ~/Android/Sdk/tools/bin/ ]; then
    PATH="$PATH:~/Android/Sdk/tools/bin"
fi

if ls -d ~/Qt* 2> /dev/null; then
	export QT_SELECT=5
	export QTVER="$(basename ~/Qt?* | cut -d "t" -f2)"
	
	PATH="${PATH}:~/Qt${QTVER}/${QTVER}/gcc_64/bin/"
	PATH="${PATH}:~/Qt${QTVER}/Tools/QtCreator/bin/"
fi

if [ -d /opt/lampp/bin/ ]; then 
	PATH="$PATH:/opt/lampp/bin/"
fi

UE4_ROOT="/mnt/dados/UnrealEngine"
if [ -d ${UE4_ROOT} ]; then
	PATH="$PATH:${UE4_ROOT}/Engine/Binaries/Linux/"
	PATH="$PATH:${UE4_ROOT}/Engine/Binaries/DotNET/"
fi

# Add yabridge 
if [ -d $HOME/yabridge ]; then
    PATH="$HOME/yabridge/:$PATH"
fi

# And finally export the PATH variable
PATH="$PATH:/usr/games"
export PATH 

