File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 9
9
10
10
- [config] [tests] [bug] `Issue #33 `_ bug. Partial rewrite of
11
11
:meth: `config.expand `.
12
+ - [cli] tmuxp will exit silently with ``Ctrl-c ``.
12
13
13
14
.. _Issue #31 : https://github.com/tony/tmuxp/issues/31
14
15
Original file line number Diff line number Diff line change @@ -953,19 +953,22 @@ def main():
953
953
colors = args .colors
954
954
)
955
955
956
- if args .callback is command_load :
957
- command_load (args )
958
- elif args .callback is command_convert :
959
- command_convert (args )
960
- elif args .callback is command_import_teamocil :
961
- command_import_teamocil (args )
962
- elif args .callback is command_import_tmuxinator :
963
- command_import_tmuxinator (args )
964
- elif args .callback is command_freeze :
965
- command_freeze (args )
966
- elif args .callback is command_attach_session :
967
- command_attach_session (args )
968
- elif args .callback is command_kill_session :
969
- command_kill_session (args )
970
- else :
971
- parser .print_help ()
956
+ try :
957
+ if args .callback is command_load :
958
+ command_load (args )
959
+ elif args .callback is command_convert :
960
+ command_convert (args )
961
+ elif args .callback is command_import_teamocil :
962
+ command_import_teamocil (args )
963
+ elif args .callback is command_import_tmuxinator :
964
+ command_import_tmuxinator (args )
965
+ elif args .callback is command_freeze :
966
+ command_freeze (args )
967
+ elif args .callback is command_attach_session :
968
+ command_attach_session (args )
969
+ elif args .callback is command_kill_session :
970
+ command_kill_session (args )
971
+ else :
972
+ parser .print_help ()
973
+ except KeyboardInterrupt :
974
+ pass
You can’t perform that action at this time.
0 commit comments