diff --git a/eprefix-activate b/eprefix-activate index 9621da8..7b4f577 100644 --- a/eprefix-activate +++ b/eprefix-activate @@ -142,6 +142,23 @@ export PAGER FEATURES="${FEATURES} -usersandbox -sandbox" export FEATURES +# Check if we are on a prefix profile +if command_exists eselect +then + eprofile="$(eselect profile show)" + + if [[ "${eprofile}" == *prefix* ]] + then + echo "${eprefix_good} ${eprofile}" + else + echo "${eprefix_bad} You are not on a prefix profile" + fi + + unset eprofile +else + echo "${eprefix_bad} Could not determine running profile" +fi + # >>> Finish