summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.profile6
1 files changed, 1 insertions, 5 deletions
diff --git a/.profile b/.profile
index 5a1191f..52b0258 100644
--- a/.profile
+++ b/.profile
@@ -19,16 +19,12 @@ case $(uname -o) in
(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
;;
esac
case $SHELL in
(*/ash) export ENV=~/.shrc ;;
-(*/bash) [ "$(type -t p)" = function ] || . ~/.bashrc ;;
+(*/bash) type -t p 2>/dev/null || . ~/.bashrc ;;
esac
[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true