From 9002e98b5e2a082407810c9ba1c6899c757e1a5f Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Sat, 16 Nov 2024 01:33:34 -0600 Subject: [PATCH] profile.linux: Arch Guile /usr/local prefix fixup --- .bashrc | 2 +- .profile.linux | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d597bbf..80e38f5 100644 --- a/.bashrc +++ b/.bashrc @@ -27,7 +27,7 @@ command -v uname >/dev/null && case $(uname) in Linux) alias ls='ls --color' - [ -f /etc/os-release ] && . /etc/os-release + [ -z "$ID" ] && [ -f /etc/os-release ] && . /etc/os-release ;; Darwin) command -v port >/dev/null && . /opt/local/etc/bashrc.mac diff --git a/.profile.linux b/.profile.linux index bf6ad28..43274e3 100644 --- a/.profile.linux +++ b/.profile.linux @@ -10,6 +10,14 @@ if [ -z "$XDG_RUNTIME_DIR" ]; then export LIBSEAT_BACKEND=seatd fi +[ -z "$ID" ] && [ -f /etc/os-release ] && . /etc/os-release +case $ID in + arch) + export GUILE_LOAD_PATH='/usr/local/share/guile/site/3.0:/usr/share/guile/3.0:/usr/share/guile/site/3.0:/usr/share/guile/site:/usr/share/guile' + ;; +esac + + if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" == '/dev/tty1' ] && command -v sway; then exec dbus-run-session sway -d |& tee /tmp/sway-$UID.log fi