From 388691e7df1d4c3eefed7a974a9c2591d1fafaf5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 24 Oct 2008 10:06:13 -0700 Subject: Better format of output Add timestamp and brief options. --- templates/show/history/brief/node.def | 2 ++ templates/show/history/node.def | 2 +- templates/show/history/node.tag/node.def | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 templates/show/history/brief/node.def (limited to 'templates') 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 '' -run: history "$3" | ${VYATTA_PAGER:-cat} +run: HISTTIMEFORMAT='%FT%T%z ' history -- cgit v1.2.3