From 001d17542cdda531fa7a2ee8ab90d47e01d251dc Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Wed, 23 Feb 2022 08:02:30 +0100 Subject: Replace hostname with proc --- .profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.profile') 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 -- cgit v1.2.3