summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile5
1 files changed, 3 insertions, 2 deletions
diff --git a/.profile b/.profile
index cb54b12..ae6ffb5 100644
--- a/.profile
+++ b/.profile
@@ -14,7 +14,8 @@ export CXXFLAGS="${CFLAGS}"
export _JAVA_AWT_WM_NONREPARENTING=1
export GDK_BACKEND=wayland
-[ -e .config/$(hostname).profile ] && . .config/$(hostname).profile
-[ $0 != sh ] && [ -n $BASH_VERSION ] && shopt login_shell 2>&1 > /dev/null && [ -f ~/.bashrc ] && . ~/.bashrc
+HOSTNAME=$(cat /proc/sys/kernel/hostname)
+[ -e .config/$HOSTNAME.profile ] && . .config/$HOSTNAME.profile
+[ $0 != sh ] && [ -n "$BASH_VERSION" ] && shopt login_shell 2>&1 > /dev/null && [ -f ~/.bashrc ] && . ~/.bashrc
echo .profile end