diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-06-15 21:58:40 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-06-15 21:58:40 +0000 |
commit | e46b12b732ef1cf8751a60c6571b475421534454 (patch) | |
tree | 0b7b116a6999eee9cceabc919a9d154c19ef0f8a /bin/sh/histedit.c | |
parent | 3d0f8bcd307dfefacba6d1ec6875b235d08ea16b (diff) | |
download | src-e46b12b732ef1cf8751a60c6571b475421534454.tar.gz src-e46b12b732ef1cf8751a60c6571b475421534454.zip |
Notes
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 4 |
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 { |