summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-22 10:40:09 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-22 10:40:09 +0100
commit386dccdbe3cb95fe0450907b57981f8684b264e5 (patch)
tree0a638f7d167d7b9a8372aeda86f83e0787c2d1da /.profile
parent953e0a3964e6c6f787c7ea70e1ffa26f254e2236 (diff)
fix note2
Diffstat (limited to '.profile')
-rw-r--r--.profile16
1 files changed, 6 insertions, 10 deletions
diff --git a/.profile b/.profile
index 878c4b0..97906da 100644
--- a/.profile
+++ b/.profile
@@ -15,20 +15,16 @@ case $(uname -o) in
. "/opt/homebrew/etc/profile.d/bash_completion.sh"
tabs -4
export HOMEBREW_NO_ANALYTICS=1
- case $SHELL in
- (*/ash) export ENV=~/.shrc ;;
- (*/bash) . ~/.bashrc ;;
- esac
;;
(Linux|GNU/Linux)
PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin
export XDG_RUNTIME_DIR=/run/user/$(id -u)
- case $SHELL in
- (*/ash) export ENV=~/.shrc ;;
- (*/bash) . ~/.bashrc ;;
- esac
-
- [ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true
;;
esac
+case $SHELL in
+(*/ash) export ENV=~/.shrc ;;
+(*/bash) type p 2>/dev/null || . ~/.bashrc ;;
+esac
+
+[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true