diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-02-13 20:21:49 +0000 |
|---|---|---|
| committer | Ellie Huxtable <e@elm.sh> | 2021-02-13 20:24:22 +0000 |
| commit | 440c4fc2335d5286d14367e39c99bb4946efe9e3 (patch) | |
| tree | 766f33c9c6b87998f22bc146fe7361e798b377df /src/local/import.rs | |
| parent | Implement history import (diff) | |
| download | atuin-440c4fc2335d5286d14367e39c99bb4946efe9e3.zip | |
Add sessions
Diffstat (limited to 'src/local/import.rs')
| -rw-r--r-- | src/local/import.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/local/import.rs b/src/local/import.rs index ce141c52..0b237814 100644 --- a/src/local/import.rs +++ b/src/local/import.rs @@ -70,11 +70,13 @@ fn parse_extended(line: String) -> History { // use nanos, because why the hell not? we won't display them. History::new( - Utc.timestamp(time, 0).timestamp_nanos(), + time * 1_000_000_000, trim_newline(command), String::from("unknown"), -1, duration * 1_000_000_000, + None, + None, ) } @@ -104,6 +106,8 @@ impl Iterator for ImportZsh { String::from("unknown"), -1, -1, + None, + None, ))) } } |
