diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-01-07 15:01:58 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-01-07 15:01:58 +0100 |
| commit | 14a76861b49404181e9f15003f4f59188735a4e7 (patch) | |
| tree | d8283c48d1c94adea14d5a3d92171163bc455c86 | |
| parent | 45063ef46f0984ad7959fc3d6cb16f57abd2412a (diff) | |
fix profile
| -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 |
