aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-15 16:22:37 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-15 16:24:05 -0700
commit18f04adccbaff74f12ad12f3f6ceb123e5ccf47f (patch)
treee389adb623b1028343a3e3f9f8ca0154218b64eb /tests
parent1ed65b6bd7e8e24bf047872e56ff807e3f81294b (diff)
Support for importing fish 1.x's history and format, and also bash
Diffstat (limited to 'tests')
-rw-r--r--tests/history_sample_bash7
-rw-r--r--tests/history_sample_fish_1_x12
-rw-r--r--tests/history_sample_fish_2_06
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/history_sample_bash b/tests/history_sample_bash
new file mode 100644
index 00000000..0be128a0
--- /dev/null
+++ b/tests/history_sample_bash
@@ -0,0 +1,7 @@
+echo foo
+history --help
+#1339718290
+export HISTTIMEFORMAT='%F %T '
+#1339718298
+echo supsup
+#abcde
diff --git a/tests/history_sample_fish_1_x b/tests/history_sample_fish_1_x
new file mode 100644
index 00000000..dd09d4cb
--- /dev/null
+++ b/tests/history_sample_fish_1_x
@@ -0,0 +1,12 @@
+# 1339519901
+ls /
+# 1339519903
+cd foobar
+# 1339519906
+function yay\
+echo hi\
+end
+# 1339520882
+echo #abc
+# 1339520884
+#def
diff --git a/tests/history_sample_fish_2_0 b/tests/history_sample_fish_2_0
new file mode 100644
index 00000000..f44bbfc0
--- /dev/null
+++ b/tests/history_sample_fish_2_0
@@ -0,0 +1,6 @@
+- cmd: echo alpha
+ when: 1339717374
+- cmd: function foo\necho bar\nend
+ when: 1339717377
+- cmd: echo this has\\\nbackslashes
+ when: 1339717385