diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-11-17 13:41:54 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-11-17 13:41:54 +0100 |
| commit | 9f6cbd079b61fab6da90ffda8f119ceeb3ef6aa0 (patch) | |
| tree | d900a2417b35ce29b5b36bbe40bf8ecc9ea25ecb | |
| parent | 238577d5bc0279a2245e2d19bc3d449acbcd8f6c (diff) | |
Fix .Profile
| -rw-r--r-- | .profile | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -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 |
