Always execute session setup

Even if session already exists, if we explicitly pass along a session
file, we should execute it.
This commit is contained in:
Marty Oehme 2019-07-10 13:09:17 +02:00
parent 1ac168ccb0
commit 6fcf2a750e

View file

@ -93,9 +93,10 @@ _attach_or_create() {
# first create a new session if one doesn't exist
if ! _session_exists; then
_create_detached_session
_load_session_file
fi
_load_session_file
# then attach or switch to the session
if _not_in_tmux; then
$start attach -t "$session_name"