about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-01-15 16:56:55 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-01-15 16:56:55 +0000
commite51abdc7f4ff9088add35ab744e2e9a696d3ea16 (patch)
tree23d8b31708b7e9074cfeb0560862af5bae0a7550 /Completion
parent915e17ee4bb62b82c153d45c1e0eff36bbcdea82 (diff)
downloadzsh-e51abdc7f4ff9088add35ab744e2e9a696d3ea16.tar.gz
zsh-e51abdc7f4ff9088add35ab744e2e9a696d3ea16.tar.xz
zsh-e51abdc7f4ff9088add35ab744e2e9a696d3ea16.zip
19377: handle the situation when MH is not installed better
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_email_addresses4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_email_addresses b/Completion/Unix/Type/_email_addresses
index 3d2ce2911..8c17ed066 100644
--- a/Completion/Unix/Type/_email_addresses
+++ b/Completion/Unix/Type/_email_addresses
@@ -22,7 +22,7 @@ _email-mail() {
 
 (( $+functions[_email-MH] )) ||
 _email-MH() {
-  reply=( ${${(f)"$(_call_program aliases ali)"}/: /:} )
+  reply=( ${${(f)"$(_call_program aliases ali 2>/dev/null)"}/: /:} )
   return 300
 }
 
@@ -119,7 +119,7 @@ _email_addresses() {
   fi
 
   # get list of all plugins except any with missing config files
-  files=( mutt ~/.muttrc mush ~/.mushrc mail ${MAILRC:-~/.mailrc} pine ~/.addressbook )
+  files=( MH ${MH:-~/.mh_profile} mutt ~/.muttrc mush ~/.mushrc mail ${MAILRC:-~/.mailrc} pine ~/.addressbook )
   plugins=( 
     ${${(k)functions[(I)_email-*]#*-}:#(${(kj.|.)~files})}
     $files(Ne:'REPLY=( ${(k)files[(r)$REPLY]} ):')