diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:58:08 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:58:08 +0000 |
commit | d6ed401f6061f9240ff6ece611b8ae8b6e9cceda (patch) | |
tree | 73a0b0f8c4cc345a35b3287a0f9ba1e72aeb32bf /Completion | |
parent | 6512a9f72024094370bdd0656829376ea25f6a02 (diff) | |
download | zsh-d6ed401f6061f9240ff6ece611b8ae8b6e9cceda.tar.gz zsh-d6ed401f6061f9240ff6ece611b8ae8b6e9cceda.tar.xz zsh-d6ed401f6061f9240ff6ece611b8ae8b6e9cceda.zip |
zsh-workers/7961
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_mailboxes | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index 08dbec816..eee6c6f35 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -12,7 +12,7 @@ local maildirectory="${maildirectory:-~/Mail}" if (( ! $+_mailbox_cache )) then -[[ -f "${~muttrc}" ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) +test ${~muttrc} && [[ -f ${~muttrc} ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) mboxes=( ${~maildirectory}/*(^/) ${~pinedirectory}/**/*(.) ) dirboxes=( ${~maildirectory}/*(/) ) @@ -33,8 +33,11 @@ do fi done -[[ -n "$muttboxes" ]] && +[[ -n "$muttboxes" ]] || [[ -d ~/.elm ]] && _mailbox_cache=(\! \< \> $muttboxes) +[[ -n "$mailpath" ]] && + _mailbox_cache=($_mailbox_cache ${mailpath//\?*/}) + _mailbox_cache=($_mailbox_cache $mboxes $maildirboxes $MHboxes) fi |