diff options
| -rw-r--r-- | .profile | 7 | ||||
| -rw-r--r-- | .profile-swift | 3 |
2 files changed, 5 insertions, 5 deletions
@@ -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 |
