blob: 14b2000c199b56265f58c607723ab4f5aea1c708 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# -*- shell-script -*-
if test "$TERM" = dumb; then
alias startx='printf '\''\e[1;31m%s\e[0m\n\c'\'' "Do not start an X session from a dumb terminal"; false'
alias xinit='printf '\''\e[1;31m%s\e[0m\n\c'\'' "Do not start an X session from a dumb terminal"; false'
elif test ! "$TERM" = linux || test -n "$DISPLAY"; then
alias startx='printf '\''\e[1;31m%s\e[0m\n\c'\'' "Do not start an X session from within an X session"; false'
alias xinit='printf '\''\e[1;31m%s\e[0m\n\c'\'' "Do not start an X session from within an X session"; false'
fi
|