# Base Functions
function fnUpdate() {
   BP_CURR_DIR=$PWD
   mkdir -p ${target} && cd $_
   git clone ${repository}
   cp -R ${target}/bash-profile/dist/. ~/
   rm -rf ${target}
   cd $BP_CURR_DIR
   clear
   if [ -z $1 ]; 
      then source ~/.bash_profile; echo 'Everything is up to date and your current context is [base]'
      else change $1; echo 'Everything is up to date and your current context is ['$1']'
   fi
}

function fnChange() {
   rm -rf ~/.bash_profile
   cp -R ~/.bash_profile-$1 ~/.bash_profile
   source ~/.bash_profile
}

# Base 
alias update='fnUpdate'
alias change='fnChange'
alias reset='source ~/.bash_profile'