Documentation ¶
Index ¶
- Constants
- func DefaultTermSize() waveobj.TermSize
- func DetectLocalShellPath() string
- func GetBashRcFileOverride() string
- func GetEnvStrKey(envStr string) string
- func GetMacUserShell() string
- func GetWavePowershellEnv() string
- func GetWshBaseName(version string, goos string, goarch string) string
- func GetWshBinaryPath(version string, goos string, goarch string) string
- func GetZshZDotDir() string
- func InitCustomShellStartupFiles() error
- func InitRcFiles(waveHome string, wshBinDir string) error
- func UpdateCmdEnv(cmd *exec.Cmd, envVars map[string]string)
- func WaveshellLocalEnvVars(termType string) map[string]string
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 DefaultShellPath = "/bin/bash"
View Source
const DefaultTermCols = 80
View Source
const DefaultTermRows = 24
View Source
const DefaultTermType = "xterm-256color"
Variables ¶
This section is empty.
Functions ¶
func DefaultTermSize ¶
func DetectLocalShellPath ¶
func DetectLocalShellPath() string
func GetBashRcFileOverride ¶
func GetBashRcFileOverride() string
func GetEnvStrKey ¶
func GetMacUserShell ¶
func GetMacUserShell() string
func GetWavePowershellEnv ¶
func GetWavePowershellEnv() 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 WaveshellLocalEnvVars ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.