diff options
Diffstat (limited to '.bash_profile')
-rw-r--r-- | .bash_profile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index c146385..3ce6850 100644 --- a/.bash_profile +++ b/.bash_profile @@ -52,5 +52,9 @@ function killmerged() { export PERLDOC='-MPod::Text::Color::Delight' -fortune +if [[ -z "$DISPLAY" ]]; then + TTY=$(tty) + [[ "${TTY/tty}" != "$TTY" && "${TTY:8:1}" = "8" ]] && + exec startx >~/xsession-errors 2>&1 +fi |