@@ -423,6 +423,7 @@ def load_workspace(
423
423
config_file ,
424
424
socket_name = None ,
425
425
socket_path = None ,
426
+ tmux_config_file = None ,
426
427
new_session_name = None ,
427
428
colors = None ,
428
429
detached = False ,
@@ -537,7 +538,8 @@ def load_workspace(
537
538
sconfig = config .trickle (sconfig )
538
539
539
540
t = Server ( # create tmux server object
540
- socket_name = socket_name , socket_path = socket_path , colors = colors
541
+ socket_name = socket_name , socket_path = socket_path ,
542
+ config_file = tmux_config_file , colors = colors ,
541
543
)
542
544
543
545
which ('tmux' ) # raise exception if tmux not found
@@ -872,6 +874,7 @@ def command_freeze(session_name, socket_name, socket_path, force):
872
874
@click .argument ('config' , type = ConfigPath (exists = True ), nargs = - 1 )
873
875
@click .option ('-S' , 'socket_path' , help = 'pass-through for tmux -S' )
874
876
@click .option ('-L' , 'socket_name' , help = 'pass-through for tmux -L' )
877
+ @click .option ('-f' , 'tmux_config_file' , help = 'pass-through for tmux -f' )
875
878
@click .option ('-s' , 'new_session_name' , help = 'start new session with new session name' )
876
879
@click .option ('--yes' , '-y' , 'answer_yes' , help = 'yes' , is_flag = True )
877
880
@click .option (
@@ -896,6 +899,7 @@ def command_load(
896
899
config ,
897
900
socket_name ,
898
901
socket_path ,
902
+ tmux_config_file ,
899
903
new_session_name ,
900
904
answer_yes ,
901
905
detached ,
@@ -933,6 +937,7 @@ def command_load(
933
937
tmux_options = {
934
938
'socket_name' : socket_name ,
935
939
'socket_path' : socket_path ,
940
+ 'tmux_config_file' : tmux_config_file ,
936
941
'new_session_name' : new_session_name ,
937
942
'answer_yes' : answer_yes ,
938
943
'colors' : colors ,
0 commit comments