1 2 3 4 5 6 7
case $(tty) in (/dev/tty1) exec startx;; (/dev/tty2) exec tmux;; (/dev/tty3) exec bc;; (/dev/tty4) exec vim;; esac