shellutil

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZshIntegrationDir  = "shell/zsh"
	BashIntegrationDir = "shell/bash"
	PwshIntegrationDir = "shell/pwsh"
	WaveHomeBinDir     = "bin"

	ZshStartup_Zprofile = `
# Source the original zprofile
[ -f ~/.zprofile ] && source ~/.zprofile
`

	ZshStartup_Zshrc = `` /* 162-byte string literal not displayed */

	ZshStartup_Zlogin = `
# Source the original zlogin
[ -f ~/.zlogin ] && source ~/.zlogin
`

	ZshStartup_Zshenv = `
[ -f ~/.zshenv ] && source ~/.zshenv
`

	BashStartup_Bashrc = `` /* 436-byte string literal not displayed */

	PwshStartup_wavepwsh = `` /* 195-byte string literal not displayed */

)
View Source
const AppPathBinDir = "bin"
View Source
const DefaultShellPath = "/bin/bash"
View Source
const DefaultTermCols = 80
View Source
const DefaultTermRows = 24
View Source
const DefaultTermType = "xterm-256color"
View Source
const WaveAppPathVarName = "WAVETERM_APP_PATH"

Variables

This section is empty.

Functions

func DefaultTermSize

func DefaultTermSize() waveobj.TermSize

func DetectLocalShellPath

func DetectLocalShellPath() string

func GetBashRcFileOverride

func GetBashRcFileOverride() string

func GetEnvStrKey

func GetEnvStrKey(envStr string) string

func GetMacUserShell

func GetMacUserShell() string

func GetWavePowershellEnv

func GetWavePowershellEnv() string

func GetWshBaseName

func GetWshBaseName(version string, goos string, goarch string) string

func GetWshBinaryPath

func GetWshBinaryPath(version string, goos string, goarch string) string

func GetZshZDotDir

func GetZshZDotDir() string

func InitCustomShellStartupFiles

func InitCustomShellStartupFiles() error

in a Once block so it can be called multiple times we run it at startup, but also before launching local shells so we know everything is initialized before starting the shell

func InitRcFiles

func InitRcFiles(waveHome string, wshBinDir string) error

func UpdateCmdEnv

func UpdateCmdEnv(cmd *exec.Cmd, envVars map[string]string)

func WaveshellLocalEnvVars

func WaveshellLocalEnvVars(termType string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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