aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrübenbach, Ralf2010-04-14 11:15:16 +0200
committerWolfgang Denk2010-05-06 00:37:50 +0200
commit39f7aacf3fd285b42b92c2c2d66d95339a3569cc (patch)
tree575d11c717287f2413829d1926462403c6aba322
parent0738e24e2c1d95bb94455d44485dc5d7b9c9d707 (diff)
command.c: Enable auto tab for the editenv command
Enable the auto completion (with TAB) of the environment variable name after the editenv command. Signed-off-by: Ralf Trübenbach <ralf.truebenbach@men.de>
-rw-r--r--common/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index 0c66b7a1d93..67ad692004e 100644
--- a/common/command.c
+++ b/common/command.c
@@ -188,6 +188,9 @@ static void install_auto_complete_handler(const char *cmd,
void install_auto_complete(void)
{
+#if defined(CONFIG_CMD_EDITENV)
+ install_auto_complete_handler("editenv", var_complete);
+#endif
install_auto_complete_handler("printenv", var_complete);
install_auto_complete_handler("setenv", var_complete);
#if defined(CONFIG_CMD_RUN)