diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-25 00:21:44 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-25 00:21:44 +0000 |
commit | d8f703027345170c7bc820ed7808e693dd1377d6 (patch) | |
tree | f9b1b6ad59f19577c0e1c5b6357cb869b4bebfba /Completion/User/_mailboxes | |
parent | d770c43f14ef6e559aa16da1c1408e006bb2a137 (diff) | |
download | zsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.gz zsh-d8f703027345170c7bc820ed7808e693dd1377d6.tar.xz zsh-d8f703027345170c7bc820ed7808e693dd1377d6.zip |
zsh-3.1.6-dev-20 zsh-3.1.6-dev-20
Diffstat (limited to 'Completion/User/_mailboxes')
-rw-r--r-- | Completion/User/_mailboxes | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/User/_mailboxes b/Completion/User/_mailboxes index 784bc4e6e..369814526 100644 --- a/Completion/User/_mailboxes +++ b/Completion/User/_mailboxes @@ -63,6 +63,7 @@ _mailbox_cache () { setopt localoptions nullglob + [[ -f ${~muttrc:-.} ]] && _mutt_cache=( ${$(grep mailboxes ${~muttrc})[2,-1]} ) @@ -76,11 +77,11 @@ _mailbox_cache () { shift dirboxes if [[ -d "$i/cur" ]]; then _maildir_cache=( "${_maildir_cache[@]}" "$i" ) - elif j=( $i/<1-> ) && [[ -n "$j" ]]; then + elif j=( "$i"/<1-> ) && [[ -n "$j" ]]; then _mh_cache=( "${_mh_cache[@]}" "$i" ) else _mbox_cache=( "${_mbox_cache[@]}" "$i"/*(.) ) - dirboxes=( $dirboxes $i/*(/) ) + dirboxes=( $dirboxes "$i"/*(/) ) fi done |