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:
parent
1ac168ccb0
commit
6fcf2a750e
1 changed files with 2 additions and 1 deletions
|
@ -93,9 +93,10 @@ _attach_or_create() {
|
||||||
# first create a new session if one doesn't exist
|
# first create a new session if one doesn't exist
|
||||||
if ! _session_exists; then
|
if ! _session_exists; then
|
||||||
_create_detached_session
|
_create_detached_session
|
||||||
_load_session_file
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_load_session_file
|
||||||
|
|
||||||
# then attach or switch to the session
|
# then attach or switch to the session
|
||||||
if _not_in_tmux; then
|
if _not_in_tmux; then
|
||||||
$start attach -t "$session_name"
|
$start attach -t "$session_name"
|
||||||
|
|
Loading…
Reference in a new issue