@@ -544,6 +544,7 @@ def load_workspace(
544
544
config_file ,
545
545
socket_name = None ,
546
546
socket_path = None ,
547
+ tmux_config_file = None ,
547
548
new_session_name = None ,
548
549
colors = None ,
549
550
detached = False ,
@@ -663,7 +664,7 @@ def load_workspace(
663
664
sconfig = config .trickle (sconfig )
664
665
665
666
t = Server ( # create tmux server object
666
- socket_name = socket_name , socket_path = socket_path , colors = colors
667
+ socket_name = socket_name , socket_path = socket_path , config_file = tmux_config_file , colors = colors
667
668
)
668
669
669
670
which ('tmux' ) # raise exception if tmux not found
@@ -996,6 +997,7 @@ def command_freeze(session_name, socket_name, socket_path, force):
996
997
@click .argument ('config' , type = ConfigPath (exists = True ), nargs = - 1 )
997
998
@click .option ('-S' , 'socket_path' , help = 'pass-through for tmux -S' )
998
999
@click .option ('-L' , 'socket_name' , help = 'pass-through for tmux -L' )
1000
+ @click .option ('-f' , 'tmux_config_file' , help = 'pass-through for tmux -f' )
999
1001
@click .option ('-s' , 'new_session_name' , help = 'start new session with new session name' )
1000
1002
@click .option ('--yes' , '-y' , 'answer_yes' , help = 'yes' , is_flag = True )
1001
1003
@click .option (
@@ -1026,6 +1028,7 @@ def command_load(
1026
1028
config ,
1027
1029
socket_name ,
1028
1030
socket_path ,
1031
+ tmux_config_file ,
1029
1032
new_session_name ,
1030
1033
answer_yes ,
1031
1034
detached ,
@@ -1064,6 +1067,7 @@ def command_load(
1064
1067
tmux_options = {
1065
1068
'socket_name' : socket_name ,
1066
1069
'socket_path' : socket_path ,
1070
+ 'tmux_config_file' : tmux_config_file ,
1067
1071
'new_session_name' : new_session_name ,
1068
1072
'answer_yes' : answer_yes ,
1069
1073
'colors' : colors ,
0 commit comments