diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 13:35:31 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 13:35:31 +0000 |
| commit | 5558d6b393c22f6cb1edf7fc6ab237a33814be81 (patch) | |
| tree | 79fcaaae2df21563c2455ff15e062ced136515a3 /Completion/User/_mailboxes | |
| parent | zsh-workers/7999 (diff) | |
| download | zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar.gz zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar.bz2 zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar.lz zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar.xz zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.tar.zst zsh-5558d6b393c22f6cb1edf7fc6ab237a33814be81.zip | |
manual/7968
Diffstat (limited to 'Completion/User/_mailboxes')
| -rw-r--r-- | Completion/User/_mailboxes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index eee6c6f35..06906628e 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -12,7 +12,7 @@ local maildirectory="${maildirectory:-~/Mail}" if (( ! $+_mailbox_cache )) then -test ${~muttrc} && [[ -f ${~muttrc} ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) +[[ -f ${~muttrc:-.} ]] && muttboxes=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) mboxes=( ${~maildirectory}/*(^/) ${~pinedirectory}/**/*(.) ) dirboxes=( ${~maildirectory}/*(/) ) @@ -33,7 +33,7 @@ do fi done -[[ -n "$muttboxes" ]] || [[ -d ~/.elm ]] && +[[ -n "$muttboxes" || -d ~/.elm || -d ~/.mutt ]] && _mailbox_cache=(\! \< \> $muttboxes) [[ -n "$mailpath" ]] && _mailbox_cache=($_mailbox_cache ${mailpath//\?*/}) |
