diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-27 18:37:13 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-27 18:37:13 -0800 |
commit | a1fc2f044f2e08b78931821068d08e2ea384ff10 (patch) | |
tree | adabc602ab25579c7972ac65156705f0c7037caa /templates/terminal/key | |
parent | 553193e924df96f55aaa163bc04599610de4337b (diff) | |
download | vyatta-op-a1fc2f044f2e08b78931821068d08e2ea384ff10.tar.gz vyatta-op-a1fc2f044f2e08b78931821068d08e2ea384ff10.zip |
* fix for bug 2771: bind space to completion for vbash users.
* add op commands to change the key behaviors.
Diffstat (limited to 'templates/terminal/key')
-rw-r--r-- | templates/terminal/key/node.def | 1 | ||||
-rw-r--r-- | templates/terminal/key/query-help/node.def | 1 | ||||
-rw-r--r-- | templates/terminal/key/query-help/node.tag/node.def | 9 | ||||
-rw-r--r-- | templates/terminal/key/space-complete/node.def | 1 | ||||
-rw-r--r-- | templates/terminal/key/space-complete/node.tag/node.def | 9 |
5 files changed, 21 insertions, 0 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..8564490 --- /dev/null +++ b/templates/terminal/key/query-help/node.tag/node.def @@ -0,0 +1,9 @@ +help: Enable/disable getting help using question mark (default enabled) +allowed: echo -n 'enable' 'disable' +run: if [ "$4" == 'disable' ]; then + touch $HOME/.vyatta_key_query_help_disable + bind '"?": self-insert' + else + rm -f $HOME/.vyatta_key_query_help_disable + bind '"?": possible-completions' + fi diff --git a/templates/terminal/key/space-complete/node.def b/templates/terminal/key/space-complete/node.def new file mode 100644 index 0000000..e02e272 --- /dev/null +++ b/templates/terminal/key/space-complete/node.def @@ -0,0 +1 @@ +help: Enable/disable space-completion diff --git a/templates/terminal/key/space-complete/node.tag/node.def b/templates/terminal/key/space-complete/node.tag/node.def new file mode 100644 index 0000000..0b5c40a --- /dev/null +++ b/templates/terminal/key/space-complete/node.tag/node.def @@ -0,0 +1,9 @@ +help: Enable/disable space-completion (default enabled) +allowed: echo -n 'enable' 'disable' +run: if [ "$4" == 'disable' ]; then + touch $HOME/.vyatta_key_space_complete_disable + bind '" ": self-insert' + else + rm -f $HOME/.vyatta_key_space_complete_disable + bind '" ": complete' + fi |