There may be a better way to do this tha's Zsh specific, but I've always just stuck a couple of variable declarations in my .zprofile: export $p=/home/pmawhorter/media/pictures and the like. When I type: cd $p<Tab> It completes to /home/pmawhorter/media/pictures. What is anoying is that I can't type '$p/a<Tab>' and complete directly to /home/pmawhorter/media/pictures/arrivals... I have to hit tab twice. Still, it's one way to "shortcut" directories. -Peter Mawhorter On 7/15/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