From 14a76861b49404181e9f15003f4f59188735a4e7 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 7 Jan 2020 15:01:58 +0100 Subject: fix profile --- .profile | 7 +++++-- .profile-swift | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 .profile-swift diff --git a/.profile b/.profile index 8263305..7ed9008 100644 --- a/.profile +++ b/.profile @@ -1,7 +1,10 @@ # ~/.profile -[ -f ~/.profile-$HOSTNAME ] && . ~/.profile-$HOSTNAME - export PATH=~/bin:$PATH:~/go/bin [ "${SHELL##*/}" = bash ] && [ -f ~/.bashrc ] && . ~/.bashrc + +# Last action: auto start X11 when logged on first terminal +case $HOSTNAME in +(swift) [ "$(tty)" != /dev/tty1 ] || exec startx ;; +esac diff --git a/.profile-swift b/.profile-swift deleted file mode 100644 index dbf7f9a..0000000 --- a/.profile-swift +++ /dev/null @@ -1,3 +0,0 @@ -# Profile specific for swift machine -# auto start X11 when logged on first terminal -[ "$(tty)" != /dev/tty1 ] || exec startx -- cgit v1.2.3