MCPcopy
hub / github.com/wavetermdev/waveterm / getShell

Function getShell

pkg/wshutil/wshutil.go:390–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388}
389
390func getShell() string {
391 if runtime.GOOS == "darwin" {
392 return shellutil.GetMacUserShell()
393 }
394 shell := os.Getenv("SHELL")
395 if shell == "" {
396 return "/bin/bash"
397 }
398 return strings.TrimSpace(shell)
399}
400
401func GetInfo() wshrpc.RemoteInfo {
402 return wshrpc.RemoteInfo{

Callers 1

GetInfoFunction · 0.85

Calls 1

GetMacUserShellFunction · 0.92

Tested by

no test coverage detected