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

Function HasWaveZshHistory

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

Source from the content-addressed store, hash-verified

295}
296
297func HasWaveZshHistory() (bool, int64) {
298 zshDir := GetLocalZshZDotDir()
299 historyFile := filepath.Join(zshDir, ZshHistoryFileName)
300 fileInfo, err := os.Stat(historyFile)
301 if err != nil {
302 return false, 0
303 }
304 return true, fileInfo.Size()
305}
306
307func IsExtendedZshHistoryFile(fileName string) (bool, error) {
308 file, err := os.Open(fileName)

Callers 1

FixupWaveZshHistoryFunction · 0.85

Calls 3

GetLocalZshZDotDirFunction · 0.85
StatMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected