MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetMacUserShell

Function GetMacUserShell

pkg/util/shellutil/shellutil.go:107–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func GetMacUserShell() string {
108 if runtime.GOOS != "darwin" {
109 return ""
110 }
111 macUserShellOnce.Do(func() {
112 cachedMacUserShell = internalMacUserShell()
113 })
114 return cachedMacUserShell
115}
116
117// dscl . -read /Users/[username] UserShell
118// defaults to /bin/bash

Callers 3

getShellFunction · 0.92
shellCmdInnerFunction · 0.92
DetectLocalShellPathFunction · 0.85

Calls 1

internalMacUserShellFunction · 0.85

Tested by

no test coverage detected