summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 10:06:13 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 10:06:13 -0700
commit388691e7df1d4c3eefed7a974a9c2591d1fafaf5 (patch)
tree57eccb22d6bc1157087bbc28833d8ec92e18ca98
parent57c3cb7b52492b9ee54b34a7bb277db596feaaf1 (diff)
downloadvyatta-op-388691e7df1d4c3eefed7a974a9c2591d1fafaf5.tar.gz
vyatta-op-388691e7df1d4c3eefed7a974a9c2591d1fafaf5.zip
Better format of output
Add timestamp and brief options.
-rw-r--r--templates/show/history/brief/node.def2
-rw-r--r--templates/show/history/node.def2
-rw-r--r--templates/show/history/node.tag/node.def2
3 files changed, 4 insertions, 2 deletions
diff --git a/templates/show/history/brief/node.def b/templates/show/history/brief/node.def
new file mode 100644
index 0000000..c1a81a3
--- /dev/null
+++ b/templates/show/history/brief/node.def
@@ -0,0 +1,2 @@
+help: recent command history
+run: history 20
diff --git a/templates/show/history/node.def b/templates/show/history/node.def
index 27ea6fd..682122a 100644
--- a/templates/show/history/node.def
+++ b/templates/show/history/node.def
@@ -1,2 +1,2 @@
help: show command history
-run: history | ${VYATTA_PAGER:-cat}
+run: HISTTIMEFORMAT='%FT%T%z ' history
diff --git a/templates/show/history/node.tag/node.def b/templates/show/history/node.tag/node.def
index c25d2fa..2c77a35 100644
--- a/templates/show/history/node.tag/node.def
+++ b/templates/show/history/node.tag/node.def
@@ -1,3 +1,3 @@
help: Display last commands in history
allowed: echo -n '<NUMBER>'
-run: history "$3" | ${VYATTA_PAGER:-cat}
+run: HISTTIMEFORMAT='%FT%T%z ' history