Skip to content

Instantly share code, notes, and snippets.

@varhub
Created February 23, 2015 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varhub/4bcfb6dfb7e8f3572e26 to your computer and use it in GitHub Desktop.
Save varhub/4bcfb6dfb7e8f3572e26 to your computer and use it in GitHub Desktop.
A simple terminal invoker. Perfect for single session environment, such as **forwarded ssh** or **chroot**
#!/bin/sh
# Terminal invoker
xterm -T "Terminal launcher" -geometry 40x3+0+0 -e '
while true
do
echo "Press Ctrl+C for a complete exit"
echo "Press enter to open a new console ;)"
read
x-terminal-emulator &
done' &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment