[Top][All Lists]

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

Re: tab completion at empty prompt and vi mode

From: Chet Ramey
Subject: Re: tab completion at empty prompt and vi mode
Date: Sat, 07 Jun 2008 21:38:16 -0400
User-agent: Thunderbird (Macintosh/20080421)

blehamiga wrote:

With 'set autolist=ambiguous' in tcsh, if I'm at an empty prompt and I hit
tab, it essentially does an ls on the directory.  If I hit tab at an empty
prompt in bash, it tries to complete all available commands instead.  I've
set up these already:

That's how bash through bash-3.2 behaves.  The next version will have
a facility to set the completion for `empty' commands.

Secondly, I prefer bindkey -v in tcsh, or set -o vi (and
editing-mode/keymap) in bash.  There's a difference though in that if I
scroll through history, tcsh defaults to command mode, and bash defaults to
insert mode. Not a major problem but I'm wondering if there's something I
missed that would get bash to default to command mode so I don't have to
re-learn habits.

I assume you mean using the arrow keys.  If you start in insert mode when
using the arrow keys to go forward and backward in the history list, bash
leaves you there.  If you're in command mode, you stay in command mode.

``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]