Guix

Sometimes you get back to a terminal tab and you don't remember if you left inside inside a guix shell or not. You could check by running echo $GUIX ENVIRONMENT. Another alternative is to have your bash prompt tell you when you are inside a guix shell. I've decide it to show it by adding the path to the profile of the guix shell in the /gnu/store. But you'll likely want something like \w [guix-shell lvl=${SHLVL}]. SHLVLV keeps track of how many guix-shells deep you are.

if [ -n "${GUIX_ENVIRONMENT}" ]; then
   PS1="\w ${GUIX_ENVIRONMENT} [${SHLVL}]\n\$ "
else
   PS1="\w\n\$ "
fi
export PS1