Renamed tmate session to avoid conflict with right eye.

This commit is contained in:
2021-03-27 08:17:09 +13:00
parent ab8888e2b8
commit 0704eb6570
2 changed files with 5 additions and 7 deletions

View File

@ -101,11 +101,9 @@ elif [ -f ~/.bw_session ]; then export BW_SESSION=$(cat ~/.bw_session);
else bwu; fi
# Try connect to my default tmate socket
if ! tmate -S /tmp/$USER.tmate.tmate attach; then
if ! tmate -S /tmp/default.tmate attach; then
tmate -S /tmp/$USER.tmate.tmate new-session -s $USER -n $USER -d
tmate -S /tmp/$USER.tmate.tmate set-window-option -t $USER automatic-rename off
tmate -S /tmp/$USER.tmate.tmate set-window-option -t $USER allow-rename off
tmate -S /tmp/$USER.tmate.tmate attach
tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d
tmate -S /tmp/default.tmate.tmate attach
fi