summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-01-07 15:01:58 +0100
committerMarc Vertes <mvertes@free.fr>2020-01-07 15:01:58 +0100
commit14a76861b49404181e9f15003f4f59188735a4e7 (patch)
treed8283c48d1c94adea14d5a3d92171163bc455c86
parent45063ef46f0984ad7959fc3d6cb16f57abd2412a (diff)
fix profile
-rw-r--r--.profile7
-rw-r--r--.profile-swift3
2 files changed, 5 insertions, 5 deletions
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