summaryrefslogtreecommitdiff
path: root/templates/terminal
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-29 15:29:17 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-29 15:29:17 -0800
commitb1f58ac09815887b948adfd8ccb574522f27656f (patch)
tree719f68cde8fb3bd3371f40eee81edf4160cfdbf3 /templates/terminal
parent0addbd328daaa27829fe088540eb9b12a4c8928d (diff)
downloadvyatta-op-b1f58ac09815887b948adfd8ccb574522f27656f.tar.gz
vyatta-op-b1f58ac09815887b948adfd8ccb574522f27656f.zip
partial fix for bug 2771: change default for root and add command for
setting key behavior.
Diffstat (limited to 'templates/terminal')
-rw-r--r--templates/terminal/key/node.def1
-rw-r--r--templates/terminal/key/query-help/node.def1
-rw-r--r--templates/terminal/key/query-help/node.tag/node.def10
-rw-r--r--templates/terminal/node.def2
4 files changed, 13 insertions, 1 deletions
diff --git a/templates/terminal/key/node.def b/templates/terminal/key/node.def
new file mode 100644
index 0000000..3303752
--- /dev/null
+++ b/templates/terminal/key/node.def
@@ -0,0 +1 @@
+help: Configure key behaviors
diff --git a/templates/terminal/key/query-help/node.def b/templates/terminal/key/query-help/node.def
new file mode 100644
index 0000000..c15f556
--- /dev/null
+++ b/templates/terminal/key/query-help/node.def
@@ -0,0 +1 @@
+help: Enable/disable getting help using question mark
diff --git a/templates/terminal/key/query-help/node.tag/node.def b/templates/terminal/key/query-help/node.tag/node.def
new file mode 100644
index 0000000..dd27db3
--- /dev/null
+++ b/templates/terminal/key/query-help/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Enable/disable getting help using question mark (default enabled)
+allowed: echo -n 'enable' 'disable'
+run: if [ "$4" == 'disable' ]; then
+ sed -i "/^bind '\"?\": .* # vyatta key binding$/d" $HOME/.bashrc
+ echo "bind '\"?\": self-insert' # vyatta key binding" >> $HOME/.bashrc
+ bind '"?": self-insert'
+ else
+ sed -i "/^bind '\"?\": .* # vyatta key binding$/d" $HOME/.bashrc
+ bind '"?": possible-completions'
+ fi
diff --git a/templates/terminal/node.def b/templates/terminal/node.def
index 85b7c7f..cdc1793 100644
--- a/templates/terminal/node.def
+++ b/templates/terminal/node.def
@@ -1 +1 @@
-help: Control terminal paging
+help: Control terminal behaviors