summaryrefslogtreecommitdiffstats
path: root/src/history.pest
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-08 19:58:53 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-08 20:00:46 -0500
commit3a082edd58ecdf4db31702c6c8487c42227049a3 (patch)
tree6cdb3a7b635da5b06e82fc91d7ddba618822843a /src/history.pest
parent1abb97cca69e0b513f7499cc7db03ba622b38711 (diff)
downloadnbsh-3a082edd58ecdf4db31702c6c8487c42227049a3.tar.gz
nbsh-3a082edd58ecdf4db31702c6c8487c42227049a3.zip
parse a history file if available
doesn't do anything with it yet
Diffstat (limited to 'src/history.pest')
-rw-r--r--src/history.pest5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/history.pest b/src/history.pest
new file mode 100644
index 0000000..67597d1
--- /dev/null
+++ b/src/history.pest
@@ -0,0 +1,5 @@
+time = @{ ASCII_DIGIT+ }
+duration = @{ ASCII_DIGIT+ ~ ("." ~ ASCII_DIGIT+)? }
+command = @{ ANY* }
+
+line = ${ SOI ~ (": " ~ time ~ ":" ~ duration ~ ";")? ~ command ~ "\n"? ~ EOI }