mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-14 00:47:02 +00:00
hold windows when running shell scripts via launch services
This commit is contained in:
parent
5c343c918d
commit
d42f2071c3
1 changed files with 2 additions and 2 deletions
|
|
@ -2219,9 +2219,9 @@ class Boss:
|
|||
mt = guess_type(path) or ''
|
||||
ext = os.path.splitext(path)[1].lower()
|
||||
if ext in ('.sh', '.command', '.tool'):
|
||||
launch_cmd += [shell_path, path]
|
||||
launch_cmd += ['--hold', shell_path, path]
|
||||
elif ext in ('.zsh', '.bash', '.fish'):
|
||||
launch_cmd += [ext[1:], path]
|
||||
launch_cmd += ['--hold', ext[1:], path]
|
||||
elif mt.startswith('text/'):
|
||||
launch_cmd += get_editor() + [path]
|
||||
elif mt.startswith('image/'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue