diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-23 15:50:23 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-23 15:50:23 -0700 |
commit | dee7d5344efaa4499635630737079492a7061972 (patch) | |
tree | ba96b24e47a45a87ef1ebec34f13e5c5be9f95f4 /templates | |
parent | f3dfb8baddab26bffac0a78890d1ad18035636fe (diff) | |
download | vyatta-op-dee7d5344efaa4499635630737079492a7061972.tar.gz vyatta-op-dee7d5344efaa4499635630737079492a7061972.zip |
Show command history
Bugfix 250
Add ability to show command history
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/history/node.def | 2 | ||||
-rw-r--r-- | templates/show/history/node.tag/node.def | 3 |
2 files changed, 5 insertions, 0 deletions
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 '<NUMBER>' +run: history "$3" | ${VYATTA_PAGER:-cat} |