shellenv

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package shellenv is the single rule for which shell a workspace user works in and which command search path that shell gives them. The browser terminal and every launcher that must find user-installed commands derive from the same launch line here, so a command that resolves in the terminal also resolves for a process Memoh starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(ctx context.Context, client *bridge.Client, seedPath string, env, unsetEnv []string) (string, error)

ResolvePath returns the command search path an interactive workspace shell ends up with when it starts from env and seedPath. Only PATH is taken from the shell: the rest of the environment stays under the caller's control.

func TerminalCommand

func TerminalCommand() string

TerminalCommand is the launch line of the interactive browser terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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