Automatically setup shell integration for ZSH

This commit is contained in:
Kovid Goyal
2021-07-15 12:29:52 +05:30
parent 8a9234ba4f
commit 725ec57bee
4 changed files with 83 additions and 3 deletions

View File

@@ -151,6 +151,9 @@ def _run_app(opts: Options, args: CLIOptions, bad_lines: Sequence[BadLine] = ())
if not is_wayland() and not is_macos: # no window icons on wayland
set_x11_window_icon()
load_shader_programs.use_selection_fg = opts.selection_foreground is not None
if opts.shell_integration != 'disabled':
from .shell_integration import setup_shell_integration
setup_shell_integration()
with cached_values_for(run_app.cached_values_name) as cached_values:
with startup_notification_handler(extra_callback=run_app.first_window_callback) as pre_show_callback:
window_id = create_os_window(