[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command completion considering characters after the cursor?
From: |
Chet Ramey |
Subject: |
Re: Command completion considering characters after the cursor? |
Date: |
Mon, 18 Jan 2010 11:00:28 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0 |
On 1/18/10 9:49 AM, Peng Yu wrote:
> Suppose I have 'some.sh' in my command line, and my cursor is at '.'
>
> $some.sh
>
> Suppose there is only one command that start with 'some', which is
> 'something.sh'. After I type TAB, I will have 'something.sh.sh' in my
> command line.
>
> $something.sh.sh
>
> I'm wondering if there is a way to configure bash, so that I will get
> 'something.sh' rather than 'something.sh.sh'.
There is nothing directly analogous in bash. The closest thing is the
`skip-completed-text' readline variable in bash-4.1/readline-6.1, but
that will not help in this case.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/