-
-
Notifications
You must be signed in to change notification settings - Fork 104
Outside bottle warning
Alistair Young edited this page Sep 15, 2019
·
3 revisions
I use this code in my .zlogin to ensure that I don't accidentally run a session outside the genie bottle when I didn't mean to, and vice versa:
# Display bottle warning
if [[ -v INSIDE_GENIE ]]; then
echo -e "\e[92m * Safely within bottle.\e[39m"
else
echo -e "\e[97;101m * WARNING: Operating outside genie bottle. Systemd-dependent functions won't.\e[39m"
fi