NetBSD-Desktop archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Tasks



On 2/13/2009 6:40 PM, Andrew Doran wrote:
On Fri, Feb 13, 2009 at 06:36:27PM -0500, Jared D. McNeill wrote:

On 2/13/2009 6:30 PM, Andrew Doran wrote:
- Need to look into enabling line editing and tab completion by default in
   sh/ksh. If someone can figure it out a good way to do this by default, I
   will be happy to absorb any flamage and commit the changes.
With ksh, even on 4.0, 'set -o emacs' is pretty reasonable. Tab
complete, tab-tab to show multiple choices, Ctrl+R and type to search
history, etc.

Tab-tab works out of the box? I'm used to this for pdksh:

        set -o emacs
        bind '^I'=complete
        bind '^I^I'=complete-list

My question is, do we modify the ksh source or put it in /etc/profile. If we
put it in /etc/profile how do we test for ksh? If it is set -o emacs then
we don't need to.

I didn't do anything fancy, 'bind' doesn't show anything for ^I or ^I^I but I have had 'set -o emacs' in my .profile since I can remember and it has worked fine with ksh.

Cheers,
Jared


Home | Main Index | Thread Index | Old Index