aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2010-06-15 21:58:40 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2010-06-15 21:58:40 +0000
commite46b12b732ef1cf8751a60c6571b475421534454 (patch)
tree0b7b116a6999eee9cceabc919a9d154c19ef0f8a /bin/sh/histedit.c
parent3d0f8bcd307dfefacba6d1ec6875b235d08ea16b (diff)
downloadsrc-e46b12b732ef1cf8751a60c6571b475421534454.tar.gz
src-e46b12b732ef1cf8751a60c6571b475421534454.zip
Notes
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index 521c6f793cca..b76d73d6583a 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -119,6 +119,9 @@ histedit(void)
if (hist)
el_set(el, EL_HIST, history, hist);
el_set(el, EL_PROMPT, getprompt);
+ el_set(el, EL_ADDFN, "sh-complete",
+ "Filename completion",
+ _el_fn_sh_complete);
} else {
bad:
out2fmt_flush("sh: can't initialize editing\n");
@@ -135,6 +138,7 @@ bad:
el_set(el, EL_EDITOR, "vi");
else if (Eflag)
el_set(el, EL_EDITOR, "emacs");
+ el_set(el, EL_BIND, "^I", "sh-complete", NULL);
el_source(el, NULL);
}
} else {