Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: new completion modifications
- X-seq: zsh-users 3738
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Scott Lipcon <slipcon@xxxxxxxxxx>
- Subject: Re: new completion modifications
- Date: Fri, 23 Mar 2001 18:54:00 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20010323183713.AAB5026267@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20010323183713.AAB5026267@xxxxxxxxxx>
On Mar 23, 1:37pm, Scott Lipcon wrote:
} Subject: Re: new completion modifications
}
} OK - I copied _mailboxes to my zsh functions directory, and modified it
} to include mh_cache:
}
} (*:mutt:*)
} mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}"
} "${_maildir_cache[@]}" "${_mh_cache[@]}" )
} mbox_short=( \! \< \> );;
Sigh. The differences are bigger than I thought. Try sticking this
in there in place of the above:
(*:mutt:*)
if compset -P '='; then
mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/
}" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}")
elif compset -P +; then
mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/
}" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}")
else
mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}"
"${_maildir_cache[@]}" "${_mh_cache[@]}" )
mbox_short=( \! \< \> )
fi
;;
If that doesn't work, you're going to have to upgrade.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author