mirror-ghostty/src
Jon Parise 4b9324f48a bash: suppress __ghostty_hook errors in inherited PROMPT_COMMAND
When some tools spawn subshells, PROMPT_COMMAND may be inherited as an
environment variable while the __ghostty_hook function is not (bash
doesn't export functions by default). This causes "command not found"
errors on every prompt in the subshell.

Add 2>/dev/null to the __ghostty_hook entry in PROMPT_COMMAND so that it
silently no-ops in subshells where the function isn't defined. This also
silences any errors from inside __ghostty_hook itself, but those are all
terminal escape sequences and non-actionable.

See: #11245
2026-03-20 09:41:34 -04:00
..
apprt gtk: move audio playback into separate file, enabling reuse 2026-03-16 19:53:24 -05:00
benchmark terminal: make stream processing infallible 2026-03-13 13:56:14 -07:00
build gtk: implement quick-terminal-screen for Linux/Wayland (#11117) 2026-03-16 06:30:02 +00:00
cli cli: tests for +explain-config explain functions 2026-03-15 21:04:35 -04:00
config Lots of duplicate word typos + typo (#11539) 2026-03-16 09:52:35 -07:00
crash Zig 0.15: zig build test macOS 2025-10-03 07:10:43 -07:00
datastruct split_tree: wrap spatial goto around edges 2026-02-17 20:35:25 -08:00
extra cli: add +explain-config 2026-03-15 20:58:43 -04:00
font Lots of duplicate word typos + typo. 2026-03-16 09:19:09 +11:00
input Lots of duplicate word typos + typo (#11539) 2026-03-16 09:52:35 -07:00
inspector terminal: make stream processing infallible 2026-03-13 13:56:14 -07:00
lib lib: lib.Struct can convert packed structs to extern structs 2026-03-14 14:21:00 -07:00
os snap: Don't leak LD_LIBRARY_PATH set by the snap launcher 2026-03-12 16:27:54 -04:00
renderer terminal: extract size report encoder 2026-03-17 16:21:34 -07:00
shell-integration bash: suppress __ghostty_hook errors in inherited PROMPT_COMMAND 2026-03-20 09:41:34 -04:00
simd Remove unused imports 2025-11-27 13:37:53 -08:00
stb Fix typos 2025-10-03 18:52:26 +02:00
synthetic benchmark: add option to microbenchmark OSC parser 2025-12-10 22:31:27 -06:00
terminal vt: add style and grapheme accessors 2026-03-19 19:48:16 -07:00
terminfo terminfo: add support for SGR dim 2026-03-03 09:48:48 +01:00
termio terminal: extract size report encoder 2026-03-17 16:21:34 -07:00
unicode Merge remote-tracking branch 'upstream/main' into grapheme-width-changes 2026-01-27 09:44:55 -05:00
App.zig remove redraw_inspector message 2026-02-01 14:32:37 -08:00
Command.zig Fix Windows test in src/Command.zig 2026-03-04 22:35:58 -06:00
Surface.zig Lots of duplicate word typos + typo (#11539) 2026-03-16 09:52:35 -07:00
apprt.zig Remove unused imports 2025-11-27 13:37:53 -08:00
build_config.zig Remove unused imports 2025-11-27 13:37:53 -08:00
cli.zig cli: make the action parser (+foo) generic and reusable 2025-07-09 15:06:24 -07:00
config.zig config: working-directory expands ~/ prefix 2026-03-10 14:33:40 -07:00
fastmem.zig perf: replace `std.debug.assert` with inlined version 2025-11-17 12:13:56 -07:00
file_type.zig util: introduce helper for detecting file types 2025-06-25 16:27:23 -04:00
global.zig logging: document GHOSTTY_LOG and make it more flexible 2025-12-15 11:54:36 -08:00
helpgen.zig Zig 0.15: zig build test 2025-10-03 07:10:43 -07:00
input.zig input: extract mouse encoding to a pure, testable file 2026-03-15 15:37:54 -07:00
lib_vt.zig vt: add style and grapheme accessors 2026-03-19 19:48:16 -07:00
main.zig remove src/bench 2025-07-09 15:06:24 -07:00
main_bench.zig Remove unused imports 2025-11-27 13:37:53 -08:00
main_build_data.zig flush output for our builddata executable 2025-10-03 13:32:15 -07:00
main_c.zig perf: replace `std.debug.assert` with inlined version 2025-11-17 12:13:56 -07:00
main_gen.zig Remove unused imports 2025-11-27 13:37:53 -08:00
main_ghostty.zig tripwire: a module for injecting failures to test errdefer 2026-01-21 09:39:02 -08:00
main_wasm.zig
math.zig
pty.zig Zig 0.15: zig build GTK exe 2025-10-03 07:10:43 -07:00
quirks.zig quirks: remove type signature for inlineAssert 2025-12-08 13:19:16 +08:00
renderer.zig testing: use std.Build.TranslateC instead of @cImport 2026-02-27 10:13:03 -06:00
surface_mouse.zig terminal: consolidate mouse types into mouse.zig 2026-03-15 15:48:36 -07:00
termio.zig search thread needs to take an allocated needle 2025-11-26 08:50:04 -08:00
tripwire.zig tripwire: change backing store from ArrayHashMap to EnumMap 2026-01-21 15:30:49 -08:00