summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.profile8
1 files changed, 4 insertions, 4 deletions
diff --git a/.profile b/.profile
index 861f532..bfff988 100644
--- a/.profile
+++ b/.profile
@@ -5,9 +5,9 @@ case $(uname -s) in
PATH=~/bin:~/mu/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/tcl-tk/bin:$PATH:~/go/bin:~/.cargo/bin:~/.pyenv/versions/2.7.18/bin:~/.local/bin
export REPLYTO='mvertes@free.fr'
export LANG=en_US.UTF-8
- if [ -z "$SSH_AUTH_SOCK" ] ; then
- eval `ssh-agent -s`
- ssh-add
+ if [ -z "$SSH_AUTH_SOCK" ]; then
+ eval "$(ssh-agent -s)"
+ ssh-add
fi
. "/opt/homebrew/etc/profile.d/bash_completion.sh"
tabs -4
@@ -24,4 +24,4 @@ case $SHELL in
(*/bash) . ~/.bashrc ;;
esac
-#[ "$(tty)" != /dev/tty1 ] || exec dbus-run-session sway
+[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true