From 9f6cbd079b61fab6da90ffda8f119ceeb3ef6aa0 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 17 Nov 2025 13:41:54 +0100 Subject: Fix .Profile --- .profile | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index 2ca9eb6..0e85e8f 100644 --- a/.profile +++ b/.profile @@ -1,2 +1,34 @@ -PATH=$PATH:/opt/local/bin:/opt/local/sbin:~/bin:~/go/bin:~/Library/Python/3.9/bin -export LANG=en_US.UTF-8 +# ~/.profile + +export OS=$(~/bin/os) + +case $OS in +(arch|alpine) + PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin + export XDG_RUNTIME_DIR=/run/user/$(id -u) + ;; +(fedora-asahi-remix) + PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:~/go/bin + export XKB_DEFAULT_LAYOUT=us XKB_DEFAULT_VARIANT=intl + ;; +(Darwin) + PATH=$PATH:/opt/local/bin:/opt/local/sbin:~/bin:~/go/bin:~/Library/Python/3.9/bin + export LANG=en_US.UTF-8 + tabs -4 + ;; +(termux) + PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin + ;; +esac + +if [ -z "$SSH_AUTH_SOCK" ]; then + eval "$(ssh-agent -s)" + ssh-add +fi + +case $SHELL in +(*/ash) export ENV=~/.shrc ;; +(*/bash) type -t p >/dev/null || . ~/.bashrc ;; +esac + +[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true -- cgit v1.2.3