Add `set -o tabcomplete' to /bin/sh
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sat, 14 Feb 2009 13:37:20 +0000 (22:37 +0900)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Fri, 10 Apr 2009 23:17:00 +0000 (08:17 +0900)
commit3f2d021a05994ae79be0e85e1895723e818c37e9
treecfc9399ef513a45992cea1f50959798e7fb2b85a
parent48623cc20eb4eefc7aa4035b5d09a0c7fd66ea65
Add `set -o tabcomplete' to /bin/sh

When set, it binds <tab> to the libedit filename completion function.
Taken-From: NetBSD
In our version, it's turned on by default in an interactive shell.
If you don't like it, put the following line

  set +o tabcomplete >/dev/null 2>&1 || true

in your ~/.shinit (or whatever path $ENV is set to) .
bin/sh/histedit.c
bin/sh/options.c
bin/sh/options.h
bin/sh/sh.1