summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-03-17 23:17:57 +0000
committerGitHub <noreply@github.com>2023-03-17 23:17:57 +0000
commit4d533e4f2f15944e0c8802cc5ad521c6d26fdf06 (patch)
tree8b9d9bd164655801e4ea36057f6e127634dbe501
parentcaa0f39b2914f922b7c3e9e20ec7ec3a5a70404b (diff)
parent365954f8ce82a554b7b03c29a92502ce3213bab6 (diff)
Merge pull request #921 from iStagnant/master
Made script more readable and redirected error
-rw-r--r--completion/_mutt-wizard.zsh17
1 files changed, 15 insertions, 2 deletions
diff --git a/completion/_mutt-wizard.zsh b/completion/_mutt-wizard.zsh
index 119df07..18c3e2e 100644
--- a/completion/_mutt-wizard.zsh
+++ b/completion/_mutt-wizard.zsh
@@ -24,9 +24,22 @@ case "$state" in
case $line[1] in
-a)
_alternative \
- 'args: :((-u\:"Account login name if not full address" -n\:"Real name to be on the email account" -i\:"IMAP/POP server address" -I\:"IMAP/POP server port" -s\:"SMTP server address" -S\:"SMTP server port" -x\:"Password for account (recommended to be in double quotes)" -P\:"Pass Prefix (prefix of the file where password is stored)" -p\:"Add for a POP server instead of IMAP." -X\:"Delete an account'"'"'s local email too when deleting." -o\:"Configure address, but keep mail online." -f\:"Assume typical English mailboxes without attempting log-on."))'
+ 'args: :((
+ -u\:"Account login name if not full address"
+ -n\:"Real name to be on the email account"
+ -i\:"IMAP/POP server address"
+ -I\:"IMAP/POP server port"
+ -s\:"SMTP server address"
+ -S\:"SMTP server port"
+ -x\:"Password for account (recommended to be in double quotes)"
+ -P\:"Pass Prefix (prefix of the file where password is stored)"
+ -p\:"Add for a POP server instead of IMAP."
+ -X\:"Delete an account'"'"'s local email too when deleting."
+ -o\:"Configure address, but keep mail online."
+ -f\:"Assume typical English mailboxes without attempting log-on."
+ ))'
;;
-D|-y)
- _values 'email list' $(mw -l | cut -f2)
+ _values 'email list' $(mw -l | cut -f2) 2>/dev/null
esac
esac