summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-22 10:51:25 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-22 10:51:25 +0100
commit074652bfb9969c26f7f9ddf0befedb22323669d4 (patch)
treef772bd15c27cd1830d62ef3da2b794352b5e7ee6 /.profile
parent953e0a3964e6c6f787c7ea70e1ffa26f254e2236 (diff)
fix termux
Diffstat (limited to '.profile')
-rw-r--r--.profile12
1 files changed, 6 insertions, 6 deletions
diff --git a/.profile b/.profile
index 878c4b0..5a1191f 100644
--- a/.profile
+++ b/.profile
@@ -15,10 +15,6 @@ 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
@@ -27,8 +23,12 @@ case $(uname -o) 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 -t p)" = function ] || . ~/.bashrc ;;
+esac
+
+[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true