shellinit

package
v1.47.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureInitDir

func EnsureInitDir(quilDir string) error

EnsureInitDir writes embedded init scripts to quilDir/shellinit/. Overwrites existing scripts to stay current with the binary version.

Types

type ShellConfig

type ShellConfig struct {
	Cmd  string   // shell command (same as original if unchanged)
	Args []string // arguments to pass to the shell
	Env  []string // additional env vars to merge with os.Environ()
}

ShellConfig holds modified spawn parameters for a shell with OSC 7 injection.

func Configure

func Configure(shell, quilDir string) *ShellConfig

Configure returns modified spawn parameters for the given shell path. Returns nil if the shell doesn't need injection (fish, sh, cmd.exe, unknown).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL