()
| 295 | } |
| 296 | |
| 297 | func 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 | |
| 307 | func IsExtendedZshHistoryFile(fileName string) (bool, error) { |
| 308 | file, err := os.Open(fileName) |
no test coverage detected