@@ -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,8 @@ 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 ,
668
+ config_file = tmux_config_file , colors = colors ,
667
669
)
668
670
669
671
which ('tmux' ) # raise exception if tmux not found
@@ -996,6 +998,7 @@ def command_freeze(session_name, socket_name, socket_path, force):
996
998
@click .argument ('config' , type = ConfigPath (exists = True ), nargs = - 1 )
997
999
@click .option ('-S' , 'socket_path' , help = 'pass-through for tmux -S' )
998
1000
@click .option ('-L' , 'socket_name' , help = 'pass-through for tmux -L' )
1001
+ @click .option ('-f' , 'tmux_config_file' , help = 'pass-through for tmux -f' )
999
1002
@click .option ('-s' , 'new_session_name' , help = 'start new session with new session name' )
1000
1003
@click .option ('--yes' , '-y' , 'answer_yes' , help = 'yes' , is_flag = True )
1001
1004
@click .option (
@@ -1026,6 +1029,7 @@ def command_load(
1026
1029
config ,
1027
1030
socket_name ,
1028
1031
socket_path ,
1032
+ tmux_config_file ,
1029
1033
new_session_name ,
1030
1034
answer_yes ,
1031
1035
detached ,
@@ -1064,6 +1068,7 @@ def command_load(
1064
1068
tmux_options = {
1065
1069
'socket_name' : socket_name ,
1066
1070
'socket_path' : socket_path ,
1071
+ 'tmux_config_file' : tmux_config_file ,
1067
1072
'new_session_name' : new_session_name ,
1068
1073
'answer_yes' : answer_yes ,
1069
1074
'colors' : colors ,
0 commit comments