shell

package
v0.0.0-...-10bf2d1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginalRC

func OriginalRC(kind Kind, baseEnv map[string]string) string

func Quote

func Quote(value string) string

Quote returns one POSIX-shell word without invoking eval.

func Render

func Render(a Activation) (string, error)

func Supported

func Supported(path string) bool

func ValidateVariable

func ValidateVariable(name string) error

Types

type Activation

type Activation struct {
	Kind            Kind
	OriginalRC      string
	Environment     map[string]string
	Unset           []string
	WorkingDir      string
	Prompt          bool
	Name            string
	ShimDir         string
	EnabledTools    []string
	Banner          string
	SessionDir      string
	BaseSnapshot    string
	ActivationNonce string
}

type Kind

type Kind string
const (
	Zsh  Kind = "zsh"
	Bash Kind = "bash"
)

func Detect

func Detect(path string) (Kind, error)

Jump to

Keyboard shortcuts

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