scripts/distrobox/invalid-terminal.sh

14 lines
355 B
Bash
Raw Normal View History

#!/bin/bash
echo "Invalid terminal session. Please use hotkeys to access an existing Distrobox or Host Terminal."
echo ""
echo "Available Distrobox sessions, with matching gnome-terminal profiles, are:"
echo ""
distrobox list | grep -v 'IMAGE' | cut -d '|' -f 2
for i in 10 9 8 7 6 5 4 3 2 1; do
printf "\rExitting in $i ..."
sleep 1
done
echo ""
exit