aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>2021-03-28 09:58:20 +0000
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>2021-03-29 09:14:27 +0000
commitb315a7296d2a69883c483d79dfcb3860a0428f21 (patch)
tree2d2680a214ce8dbc3d8e516effa31a73f4657cd1 /lib/libedit
parent177772088060ab0f41bcdbdd81c4712e7f1c7621 (diff)
downloadsrc-b315a7296d2a69883c483d79dfcb3860a0428f21.tar.gz
src-b315a7296d2a69883c483d79dfcb3860a0428f21.zip
sh(1): autocomplete commands
Without this patch, sh can autocomplete file names but not commands from $PATH. Use libedit's facility to execute custom function for autocomplete, but yield to the library's standard autocomplete function when cursor is not at position 0. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D29361
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile
index 963063ef90fa..e549ac15c000 100644
--- a/lib/libedit/Makefile
+++ b/lib/libedit/Makefile
@@ -65,7 +65,7 @@ MLINKS= \
editline.3 tok_wreset.3 \
editline.3 tok_wstr.3
-INCS= histedit.h
+INCS= histedit.h filecomplete.h
SRCS+= common.h emacs.h fcns.h func.h help.h vi.h
CLEANFILES+= common.h emacs.h fcns.h func.h help.h vi.h