scripts/distrobox/invalid-terminal.sh

14 lines
361 B
Bash
Raw Permalink 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
2023-01-06 19:41:31 +00:00
printf "\rExitting in $i ..."
sleep 1
done
echo ""
exit