Bash: autocomplete from list

Luis Paulo luis.barbas at gmail.com
Sun Aug 1 13:22:55 UTC 2010


On Sun, Aug 1, 2010 at 1:23 AM, Afsheen Ghorashy <grasswistle at gmail.com> wrote:
> Let us assume that I have a text file with expressions separated by line
> breaks.
>
> I would like Bash to include the expressions of this text file in its search
> when I press double-tab (autocomplete).
>
> Is this possible? How would I do it? Programming is no foe of mine.
>
> Thanks,
> Grasswistle
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>

Nah...

But ii the expressions are commands you want an easier way to type
them at the prompt, try the bash aliases.

See http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_05.html, for example

Hope it helps
Regards
Luis




More information about the ubuntu-users mailing list