Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Option to define "favourite" folders to look for matches within, on completion request?



Hello,

2010/5/5 Eugene Dzhurinsky <bofh@xxxxxxxxxxx>:
> I have some (strange?) question about completion in ZSH: is it possible to
> define some folders, being inspected on completion request for match?
>
> For example, if I define the folder "/home/user/workspace/" as "favourite",
> and there is the sub-folder "/home/user/workspace/project1" - if current folder
> is '/var/lib/something' and I do type
>
> cd proj[tab]
>
> then the completion '/home/user/workspace/project1' will be suggested.
>
> Also multiple such "favourite" folder will be good to have.

For the cd command, you may use the $cdpath colon-separated list, see
`man zshparam'

Best regards,

-- 
Jérémie



Messages sorted by: Reverse Date, Date, Thread, Author