mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 09:38:16 +02:00
Add a --hold command line option to stay open after the child process exits
Fixes #667
This commit is contained in:
10
kitty/cli.py
10
kitty/cli.py
@@ -76,6 +76,12 @@ Path to a file containing the startup :italic:`session` (tabs, windows, layout,
|
||||
See the README file for details and an example.
|
||||
|
||||
|
||||
--hold
|
||||
type=bool-set
|
||||
Remain open after child process exits. Note that this only affects the first
|
||||
window. You can quit by either using the close window shortcut or :kbd:`Ctrl+d`.
|
||||
|
||||
|
||||
--single-instance -1
|
||||
type=bool-set
|
||||
If specified only a single instance of :italic:`{appname}` will run. New invocations will
|
||||
@@ -213,6 +219,10 @@ def code(x):
|
||||
return x
|
||||
|
||||
|
||||
def kbd(x):
|
||||
return x
|
||||
|
||||
|
||||
def env(x):
|
||||
return italic(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user