summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-21 15:02:24 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-21 15:02:24 +0100
commit7e5c61de7d243038d058973d191e729e52c4cbd2 (patch)
treeffa060c1d31a1ea75d0b2b6b3aac9e377fc04ec7 /.profile
parentcaec9ce908ae967238bcba5df96a73287b512ddd (diff)
parentdffa021c681aea61999123b9bac7f7ec110837f2 (diff)
Merge branch 'master' of github.com:mvertes/dotfiles
Diffstat (limited to '.profile')
-rw-r--r--.profile8
1 files changed, 4 insertions, 4 deletions
diff --git a/.profile b/.profile
index 372c1b8..afd9468 100644
--- a/.profile
+++ b/.profile
@@ -7,9 +7,9 @@ case $(uname -o) 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
@@ -26,4 +26,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