[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] autocompletion - adding a space after a hint
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] autocompletion - adding a space after a hint |
Date: |
Mon, 31 Aug 2015 09:36:52 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 8/28/15 10:40 AM, Quaquaraqua wrote:
> Hi,
>
> I've already tried to ask about this issue on bashscripts.org, but didn't
> receive a satisfactory answer so far. My question is there a way to have
> the autocompletion functionality adding a space after a suggestion in
> certain cases, and not in others?
Use the `compopt' builtin in your completion function to set the value
of the `nospace' option appropriately in each case.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/