#!/usr/bin/env bash EPKG_TARS_PATH=/tmp/$USER execute_epkg_init(){ export PATH=$PATH:$EPKG_TARS_PATH/epkg_manager/bin # cd $EPKG_TARS_PATH/epkg_manager/bin echo "Attention: Ready to execute epkg initialization." echo "These dirs will be maked: OPT_EPKG=/opt/epkg HOME_EPKG=$HOME/.epkg EPKG_CONFIG_DIR=$HOME_EPKG/config EPKG_ENVS_ROOT=$HOME_EPKG/envs EPKG_STORE_ROOT=$HOME_EPKG/store EPKG_PKG_CACHE_DIR=$HOME/.cache/epkg/packages COMMON_PROFILE_LINK=$EPKG_ENVS_ROOT/common/profile-current" echo "sure to continue? (y: continue, others: exit)" read choice if [ "$choice" != "y" ]; then return 1 fi epkg init echo "For changes to take effect, close and re-open your current shell." bash } execute_epkg_init