Add a --hold command line option to stay open after the child process exits

Fixes #667
This commit is contained in:
Kovid Goyal
2018-06-22 13:51:42 +05:30
parent d16215ab6e
commit 82f6fbff77
3 changed files with 20 additions and 0 deletions

View File

@@ -124,6 +124,8 @@ def create_session(opts, args=None, special_window=None, cwd_from=None, respect_
ans.tabs[-1].layout = current_layout
if special_window is None:
cmd = args.args if args and args.args else resolved_shell(opts)
if args.hold:
cmd = ['kitty', '+hold'] + cmd
from kitty.tabs import SpecialWindow
k = {'cwd_from': cwd_from}
if respect_cwd: