From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17893 invoked by alias); 28 Mar 2018 01:01:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42548 Received: (qmail 25047 invoked by uid 1010); 28 Mar 2018 01:01:27 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(205.235.26.22):SA:0(0.2/5.0):. Processed in 13.916451 secs); 28 Mar 2018 01:01:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=TzE5=GS=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1522198866; bh=+3qJeFl+5wXvW5zLvtilggq+kHY50AAJF33UolMIBWQ=; h=From:To:Subject:Date:From:Subject; b=cGFVKNM5gck4KnZ1kKN2ikFY8ESp8+WEvYNZ4A98vD0ljmC+eEd8k/XCiuNouz+viglmBN1+WH1S50ds3+z8wZcSPldtLFc959Cx6ultLnSLk8wPu9stUQVjioHQLroZEYUM9OYLl6xFTxw/dlkOjZOrksyPZtgthpdHP2G0VG37dfmP77yI9L7NfyNeeHlsIV4dHotW/WlDUOHDAXwhwyEhPu/TTUjNrCY/oiyNynVMlSre6Zrkzyz5WQzX9KKSPwRwhjOpAX5B9TlyN88bM1VyNfeRV/gY+gCW8XPIbAv+k/psXan/1x5KT13HgnPNd0wrBLp2SJsR0q7WuNrW2g== X-YMail-OSG: _6Wp1dQVM1ngb.sOWZWfk.HqX7hqCpNlIVp8sFuYcEOftgs07viIpOA_jURm_ue ixfIbo11sgqToY_n_G0KCJs.zfYCJwZ6pyBraKqvnVw7q0hYu7SVSPrA7C5K_oDVKdm09eVspPX1 o4A4tWIZDHSpl4DVu2hAVO2GEXdu1AwQYoE0WwDaJw5fYsEoicvIdU5KqqNfz6kwCRa1WFjFcfqO kQP7kyvQ0IusHt2dhAzMPgYBz2y_qXSr5wCkkHPzhsMAEky0k9e5I8XSpKk6_HeO0z_HLexkgEcu fa9L7Izcq9C1I0uvp7rBkQ0Tpw8sp7hl0r8DMBBlAwRCaFo56pwxvYVowcaVSgSaCjRTbs9Br3vJ y7fGVO5uNJ3xQ8f5_uHfZC_AGYuoboHBKg7vMs4hR8Q7zmQiK8DdTj00Pl_PhUe_NoG9d4goGvR8 yeiV9ufAi8_ZIDzrntGP8AfTiL9lq5jHvKz6Q9bGC0jzmEJwB.UR8omsn4ZVt4VKGLdbFyJsKbeM UTbgDn5GqbA-- From: Oliver Kiddle To: Zsh workers Subject: PATCH: pwgen completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7436.1522187187.1@thecus> Date: Tue, 27 Mar 2018 23:46:27 +0200 Message-ID: <7437.1522187187@thecus> New completion for pwgen, a utility for generating random passwords. Oliver diff --git a/Completion/Unix/Command/_pwgen b/Completion/Unix/Command/_pwgen new file mode 100644 index 000000000..f8ab1cb92 --- /dev/null +++ b/Completion/Unix/Command/_pwgen @@ -0,0 +1,19 @@ +#compdef pwgen + +_arguments -s -S \ + '(-h --help -c --capitalize -A --no-capitalize)'{-c,--capitalize}'[include at least one capital letter in the password]' \ + '(-h --help -c --capitalize -A --no-capitalize)'{-A,--no-capitalize}"[don't include capital letters in the password]" \ + '(-h --help -n --numerals -0 --no-numerals)'{-n,--numerals}'[include at least one number in the password]' \ + '(-h --help -n --numerals -0 --no-numerals)'{-0,--no-numerals}"[don't include numbers in the password]" \ + '(-h --help -y --symbols)'{-y,--symbols}'[include at least one special symbol in the password]' \ + '(-h --help -r --remove-chars)'{-r+,--remove-chars=}'[remove characters from the set of characters to generate passwords]:characters' \ + '(-h --help -s --secure)'{-s,--secure}'[generate completely random passwords]' \ + '(-h --help -B --ambiguous)'{-B,--ambiguous}"[don't include ambiguous characters in the password]" \ + '(- 1 2)'{-h,--help}'[print a help message]' \ + '(-h --help -H --sha1)'{-H+,--sha1=}'[use sha1 hash of given file as a (not so) random generator]:file:_files -S \# -qr "/ \t\n\-"' \ + '(-h --help -1)-C[print the generated passwords in columns]' \ + "(-h --help -C)-1[don't print the generated passwords in columns]" \ + '(-h --help -v --no-vowels)'{-v,--no-vowels}"[don't use any vowels so as to avoid accidental nasty words]" \ + '(-N --num-passwords 2)'{-N,--num-passwords}'[specify number of passwords to generate]' \ + '!-a' '!--alt-phonics' \ + '1: :_guard "^-*" "length"' '(-N --num-passwords)2: :_guard "^-*" "number of passwords"'