Documentation
¶
Overview ¶
Package shellintegration marks a shell session's prompt for the terminal with OSC 133, the way Ghostty's shell integration does, so the native window's terminal (libghostty-vt) clears the prompt on a resize instead of leaving the lines a reflow wrapped above the one the shell draws again.
The scripts are written to disk once at startup (Install) and the shell is pointed at them when its session spawns (Apply): zsh through ZDOTDIR, bash through --rcfile, fish through XDG_DATA_DIRS. Each one gives back what it borrowed and reads the user's own rc files as the shell would have.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply returns the arguments and environment that start shell with the integration in dir. A shell it has no script for (sh, PowerShell) is returned as it came.
Types ¶
This section is empty.