Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Adding array content to cd completion
- X-seq: zsh-users 10984
- From: Jean-Rene David <jrdavid@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Adding array content to cd completion
- Date: Wed, 15 Nov 2006 00:09:38 -0500
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I have an array of directories I frequently visit.
I would like the completion of "cd" to include
those directories, as a separate group.
I put the following in my .zshrc. It works but is
ugly and crude. There must be a better way to do
it.
---------------%<----------------
mycompletion() {
_cd
compadd -X Jumps -a jumplist
}
compdef mycompletion cd
---------------%<----------------
Suggestions?
--
JR
Messages sorted by:
Reverse Date,
Date,
Thread,
Author