help-bash
[Top][All Lists]
Advanced

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

[Help-bash] $<space><tab> completes to files rather than commands


From: Michal Pesa
Subject: [Help-bash] $<space><tab> completes to files rather than commands
Date: Mon, 16 Jul 2018 16:43:40 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hello.

Please take a look at the following scenarios where "$" is the beginning of the prompt:

1) $<tab> # complete -E will be used

2) $p<tab> # commands beginning with "p" will be completed

3) $<space>p<tab> # commands beginning with "p" will be completed again

4) $<space><tab> # all files in the current dir (for some reason) will be completed

Why doesn't 4) complete to all possible commands instead of all files since it's the first word on the line? Is the completion of the first word configurable at all (not counting complete -E)? Let's say I wanted $p<tab> to complete only to a subset of commands I choose.


Thank you for your time.




reply via email to

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