shellutil

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserEnvironment

func GetUserEnvironment(ctx context.Context) (map[string]string, error)

Gets the current user's default interactive/login shell environment.

func GetUserShellPath

func GetUserShellPath() string

Returns the path of the current user's default shell.

func IdentifyShell

func IdentifyShell(shellPath string) string

Given a shell path, attempts to returns the name of a known shell implementation.

func IdentifyUserShell

func IdentifyUserShell() string

Attempts to return the name of the current user's default shell.

Types

This section is empty.

Jump to

Keyboard shortcuts

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