From ba3bb98031eae480fcc64179151ee92f786f67b1 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 29 Dec 2021 22:13:48 -0500 Subject: [PATCH] X11: Source .profile on startup in OpenBSD I've started keeping local aliases and environment there that need to be present before spawning st(1) terminals! --- .xinitrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.xinitrc b/.xinitrc index fc95a5f..299b685 100755 --- a/.xinitrc +++ b/.xinitrc @@ -17,8 +17,9 @@ if [ $(uname) = "OpenBSD" ]; then # since xenodm is run as root, we need to export ENV # ~/.shrc otherwise the interactive shells spawned in st - # won't have the right profile - export ENV=~/.shrc + # won't have the right profile. Sourcing .profile should do it + # and get local aliases, etc + . $HOME/.profile # Prefer UTF-8 in X for unicode character support export LC_CTYPE="en_US.UTF-8" -- libgit2 1.1.1