On 16/07/07, Mats Ahlgren <mats_a@xxxxxxx> wrote:
Hello, I'd like to do a simple autocomplete, where a string (e.g. #doc) gets expanded instantly into '/home/username/documents' or somesuch I've been searching online for a long time on how to do this, but couldn't find any information. Would someone be so kind as to suggest a reference or provide the code snippet? Thank you, Mats
doc=/home/username/documents $doc<tab> Is not what you want? you can also do something like bindkey -s '^X^D' /home/username/documents and the string will be inserted if you press ctrl-x ctrl-d -- Mikael Magnusson