From a4e90d2c6f7d92f6c72fbbfcf377ab9d1829996e Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Fri, 10 Mar 2023 10:14:36 -0500
Subject: actually install zsh completion

---
 completion/_mutt-wizard.zsh           | 32 ++++++++++++++++++++++++++++++++
 completion/mutt-wizard-completion.zsh | 32 --------------------------------
 2 files changed, 32 insertions(+), 32 deletions(-)
 create mode 100644 completion/_mutt-wizard.zsh
 delete mode 100644 completion/mutt-wizard-completion.zsh

(limited to 'completion')

diff --git a/completion/_mutt-wizard.zsh b/completion/_mutt-wizard.zsh
new file mode 100644
index 0000000..119df07
--- /dev/null
+++ b/completion/_mutt-wizard.zsh
@@ -0,0 +1,32 @@
+#compdef mw
+
+_arguments \
+	'1:flag:->flags' \
+	'*:: :->args'
+
+case "$state" in
+	flags)
+		local -a opts
+		opts=(
+		'-a:Add an email address'
+		'-l:List email addresses configured'
+		'-d:Remove an already added address'
+		'-D:Force remove account without confirmation'
+		'-y:Sync mail for account by name'
+		'-Y:Sync mail for all accounts'
+		'-t:Toggle automatic mailsync every <number> minutes'
+		'-T:Toggle automatic mailsync every 10 minutes'
+		'-r:order account numbers'
+		)
+		_describe 'flags' opts
+		;;
+	args)
+		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."))'
+				;;
+			-D|-y)
+				_values 'email list' $(mw -l | cut -f2)
+		esac
+esac
diff --git a/completion/mutt-wizard-completion.zsh b/completion/mutt-wizard-completion.zsh
deleted file mode 100644
index 119df07..0000000
--- a/completion/mutt-wizard-completion.zsh
+++ /dev/null
@@ -1,32 +0,0 @@
-#compdef mw
-
-_arguments \
-	'1:flag:->flags' \
-	'*:: :->args'
-
-case "$state" in
-	flags)
-		local -a opts
-		opts=(
-		'-a:Add an email address'
-		'-l:List email addresses configured'
-		'-d:Remove an already added address'
-		'-D:Force remove account without confirmation'
-		'-y:Sync mail for account by name'
-		'-Y:Sync mail for all accounts'
-		'-t:Toggle automatic mailsync every <number> minutes'
-		'-T:Toggle automatic mailsync every 10 minutes'
-		'-r:order account numbers'
-		)
-		_describe 'flags' opts
-		;;
-	args)
-		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."))'
-				;;
-			-D|-y)
-				_values 'email list' $(mw -l | cut -f2)
-		esac
-esac
-- 
cgit v1.2.3