From 6fcf2a750eaf655f6bed6e4dee68a60662226a7f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 10 Jul 2019 13:09:17 +0200 Subject: [PATCH] Always execute session setup Even if session already exists, if we explicitly pass along a session file, we should execute it. --- .local/bin/tm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/tm b/.local/bin/tm index 8e42a1a..fdb6fef 100755 --- a/.local/bin/tm +++ b/.local/bin/tm @@ -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"