From dee7d5344efaa4499635630737079492a7061972 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 23 Oct 2008 15:50:23 -0700 Subject: Show command history Bugfix 250 Add ability to show command history --- templates/show/history/node.def | 2 ++ templates/show/history/node.tag/node.def | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 templates/show/history/node.def create mode 100644 templates/show/history/node.tag/node.def diff --git a/templates/show/history/node.def b/templates/show/history/node.def new file mode 100644 index 0000000..27ea6fd --- /dev/null +++ b/templates/show/history/node.def @@ -0,0 +1,2 @@ +help: show command history +run: history | ${VYATTA_PAGER:-cat} diff --git a/templates/show/history/node.tag/node.def b/templates/show/history/node.tag/node.def new file mode 100644 index 0000000..c25d2fa --- /dev/null +++ b/templates/show/history/node.tag/node.def @@ -0,0 +1,3 @@ +help: Display last commands in history +allowed: echo -n '' +run: history "$3" | ${VYATTA_PAGER:-cat} -- cgit v1.2.3